@extends("theme.$theme.layout") @section('styles') @endsection @section('title') {{__('Pago de reservación')}} @endsection @section('content') @php $isAdmin = Auth::user()->hasRole('Admin'); $pagoID = 0; @endphp {{-- Ini:Pago --}}

{{__('Folio')}}#{{$reserva->id}}

{{-- Ini:Detalle --}}
@php $fechaPago = date_create($reserva->checkin_date); date_sub($fechaPago, date_interval_create_from_date_string('61 days')); //echo date_format($fecha, 'Y-m-d'); @endphp
{{__('Agencia')}} {{__('Usuario')}} {{__('Referencia')}} {{__('Servicio')}} {{__('Llegada')}}
{{$reserva->userSaved->agencies[0]['name']}} {{$reserva->userSaved->name}} {{$reserva->provider_reference}} {{$reserva->type}} {{$reserva->checkin_date}}
{{__('Cliente')}} Subtotal Total {{__('Fecha límite de pago')}} {{__('Estatus')}}
{{$reserva->name}} {{$reserva->subtotal}} {{$reserva->total}} {{date_format($fechaPago, 'Y-m-d')}} @if ($reserva->payment_status !== 2) {{__('Cambiar a pagado')}} @else Pagado @endif
{{-- Fin:Detalle --}} {{-- Ini:Tabla Documentos --}}
{{-- Ini:Info pago --}}
{{__('Documentos')}}
{{__('ID')}} {{__('Tipo')}}
{{-- Ini:Tabla Documentos --}} @if ($reserva->payment_status !== 2) {{-- Ini:Sin pago --}}
{{-- Ini:Formulario pago --}}
{{-- Fin:Formulario pago --}} {{-- Ini:Formulario deposito --}}
{{-- Fin:Formulario deposito --}}
{{-- Fin:Sin pago --}} @else {{-- Ini:Con pago --}}
{{-- Ini:Info pago --}}
{{__('Pagado')}}
@foreach ($reserva->payments as $payment) @php $pagoID = $payment->id; @endphp

{{__('Autorización')}}: {{$payment->authorization}}
{{__('Fecha pago')}}: {{$payment->created_at}}

@endforeach
{{-- Fin:Info pago --}} {{-- Ini:Documentos subir --}}
{{-- Fin:Documentos subir --}}
{{-- Fin:Con pago --}} @endif
{{-- Fin:Pago --}} @endsection @section('scripts') @endsection