@extends('template.layout') @section('content') @php $isSpanish = $datosPago['isSpanish'] ?? true; $simbolo = $datosPago['simbolo'] ?? '$'; $total = $datosPago['total'] ?? 0; $descripcionPago = $datosPago['descripcionPago'] ?? 'Reserva de vuelo'; $clipApiKey = config('clip.api_key', ''); $idCotizacion = $datosPago['id_cotizacion'] ?? 0; $nombreVuelo = $datosPago['nombre_vuelo'] ?? 'Vuelo'; $jsonIncluye = $datosPago['json_incluye'] ?? []; $cantidadPax = $datosPago['cantidad_pax'] ?? 0; $precioUnitario = $datosPago['precio_unitario'] ?? 0; $fechaVuelo = $datosPago['fecha_vuelo'] ?? null; $adultos = $datosPago['adultos'] ?? 0; $ninios = $datosPago['ninios'] ?? 0; $responsable = $datosPago['responsable'] ?? []; $adicionales = $datosPago['adicionales'] ?? []; @endphp

{{ $nombreVuelo }}

{{ $isSpanish ? 'Folio' : 'Folio' }}: {{ $datosPago['vuelo_folio'] ?? '' }}
@if(false) {{-- Si tuvieras descuento, aquí se mostraría --}}
{{ $simbolo }}999.99
@endif
{{ $simbolo }}{{ number_format($total, 2) }}
{{ $isSpanish ? 'Total a pagar' : 'Total to pay' }}
@if ($fechaVuelo)
{{ \Carbon\Carbon::parse($fechaVuelo)->format('d/m/Y') }}
@endif
{{ $adultos }} {{ $isSpanish ? 'adultos' : 'adults' }} @if ($ninios > 0) + {{ $ninios }} {{ $isSpanish ? 'niños' : 'children' }} @endif
@if ($cantidadPax > 0 && $precioUnitario > 0)
{{ $simbolo }}{{ number_format($precioUnitario, 2) }} x {{ $cantidadPax }} {{ $isSpanish ? 'pax' : 'pax' }}
@endif
@if (count($adicionales) > 0)
{{ $isSpanish ? 'Extras cotizados' : 'Quoted extras' }}
    @foreach ($adicionales as $extra)
  • {{ $isSpanish ? 'Servicio adicional' : 'Extra service' }} ID {{ $extra->id_servicio_adicional ?? 'N/A' }} - {{ $simbolo }}{{ number_format($extra->precio_vendido ?? 0, 2) }} ({{ $extra->cantidades ?? 0 }} {{ $isSpanish ? 'unidad(es)' : 'unit(s)' }})
  • @endforeach
@endif @if (!empty($jsonIncluye) && is_array($jsonIncluye))
{{ $isSpanish ? 'El vuelo incluye' : 'The flight includes' }}
    @foreach ($jsonIncluye as $item)
  • {{ $item['titulo'] ?? '' }} @if (!empty($item['subtitulo'])) - {{ $item['subtitulo'] }} @endif
  • @endforeach
@endif @if (!empty($responsable['nombres']) || !empty($responsable['apellidos']))
{{ $isSpanish ? 'Responsable' : 'Responsible' }}
  • {{ $responsable['nombres'] ?? '' }} {{ $responsable['apellidos'] ?? '' }}
  • {{ $responsable['email'] ?? '' }}
  • {{ $responsable['telefono'] ?? '' }}
  • @endif
    @endsection @push('js') @endpush