@extends('layouts.client') @section('title', 'Mis Reservas') @php $usuario = [ 'nombre' => 'Cristian', 'avatar' => 'https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?q=80&w=200&auto=format&fit=crop' ]; $reservas = [ [ 'id' => 'RES-9921', 'evento' => 'Almuerzo Ejecutivo', 'fecha' => date('Y-m-d'), 'hora' => '13:30', 'zona' => 'Terraza Principal', 'personas' => 4, 'estado' => 'en_curso', 'total' => 420.50, 'pagado' => 100.00, 'pendiente' => 320.50, 'img' => 'https://images.unsplash.com/photo-1555396273-367ea4eb4db5?q=80&w=600', 'items' => [ ['cant' => 1, 'plato' => 'Ronda Marina', 'precio' => 120.00], ['cant' => 4, 'plato' => 'Pisco Sour Catedral', 'precio' => 100.00], ['cant' => 2, 'plato' => 'Lomo Saltado', 'precio' => 110.00], ] ], [ 'id' => 'RES-8842', 'evento' => 'Cena Romántica', 'fecha' => '2026-02-14', 'hora' => '20:00', 'zona' => 'Salón Privado', 'personas' => 2, 'estado' => 'confirmada', 'total' => 150.00, 'pagado' => 150.00, 'pendiente' => 0.00, 'img' => 'https://images.unsplash.com/photo-1514362545857-3bc16c4c7d1b?q=80&w=600', 'items' => [ ['cant' => 1, 'plato' => 'Reserva Mesa VIP', 'precio' => 150.00] ] ], [ 'id' => 'RES-7710', 'evento' => 'Cumpleaños', 'fecha' => '2025-12-20', 'hora' => '19:00', 'zona' => 'Box Lounge', 'personas' => 10, 'estado' => 'finalizada', 'total' => 1250.00, 'pagado' => 1250.00, 'pendiente' => 0.00, 'img' => 'https://images.unsplash.com/photo-1466978913421-dad938661248?q=80&w=600', 'items' => [] ] ]; @endphp @section('client_content')
{{-- HEADER TIPO APP BANCARIA --}}

Mis Reservas

{{-- CONTENEDOR PRINCIPAL --}}
{{-- RESUMEN SUPERIOR --}}

Total Gastado

S/ 1,820.50

Reservas Activas

2

En curso

Puntos VIP

1,250

Nivel Gold
{{-- TABS DE FILTRO --}}
{{-- LISTA DE RESERVAS --}}
@foreach($reservas as $res) @php $isPending = $res['pendiente'] > 0; $isActive = $res['estado'] == 'en_curso'; @endphp
{{-- CABECERA DE TARJETA --}}
{{-- Imagen --}}
{{ $res['id'] }}
@if($isActive)
En Curso
@endif
{{-- Info Principal --}}

{{ $res['evento'] }}

{{ date('d M, Y', strtotime($res['fecha'])) }} • {{ $res['hora'] }}

{{ $res['zona'] }} {{ $res['personas'] }} Pers.
{{-- Barra de Progreso Financiero --}}
@php $porcentaje = ($res['total'] > 0) ? ($res['pagado'] / $res['total']) * 100 : 0; @endphp
Pagado: S/ {{ number_format($res['pagado'], 2) }} @if($res['pendiente'] > 0) Pendiente: S/ {{ number_format($res['pendiente'], 2) }} @else Completado @endif
{{-- Botones de Acción --}}
@if($isPending) @endif @if(!empty($res['items'])) @endif
{{-- DETALLE DESPLEGABLE --}} @if(!empty($res['items']))

Detalle del Consumo

@foreach($res['items'] as $item)
{{ $item['cant'] }}x {{ $item['plato'] }}
S/ {{ number_format($item['precio'], 2) }}
@endforeach
Total Consumido S/ {{ number_format($res['total'], 2) }}
@endif
@endforeach
{{-- ESTADO VACÍO --}}
{{-- MODAL QR --}}
@endsection @push('scripts') @endpush