@extends('admin.layouts.app') @section('titulo', 'Suscripción de la empresa') @section('subtitulo', 'Genera o renueva la suscripción y emite su ticket') @php $sim = $empresa->simbolo ?? 'S/'; @endphp @section('contenido')

Empresa {{ $empresa->nombre }} · Vence actual: {{ $sub?->fecha_fin?->format('d/m/Y') ?? '—' }}

Volver a la empresa
@if ($errors->any())
@endif @php $in = 'w-full rounded-xl border border-slate-200 bg-slate-50 px-4 py-2.5 text-sm outline-none focus:border-brand-400 focus:ring-4 focus:ring-brand-100 transition'; @endphp

Nueva suscripción

@csrf
{{-- Resumen calculado --}}
Subtotal{{ $sim }} 0.00
Descuento- {{ $sim }} 0.00
Total a pagar{{ $sim }} 0.00
Vence el

El monto y la fecha de vencimiento se calculan automáticamente según el plan y la duración. Se registra la suscripción y se genera un ticket.

Cancelar
{{-- Historial --}}

Historial de suscripciones

@forelse ($historial as $h) @empty @endforelse
Plan Compra Vigencia Estado Costo
{{ $h->plan?->nombre ?? '—' }} {{ $h->fecha_inicio?->format('d/m/Y') ?? '—' }} {{ $h->fecha_inicio?->format('d/m/y') }} → {{ $h->fecha_fin?->format('d/m/y') }} {{ $h->estado }} {{ $sim }} {{ number_format($h->precio, 2) }} Ticket
Sin suscripciones registradas.
@push('scripts') @endpush @endsection