@extends('layouts.app') @section('title', 'Dashboard Propietario') @section('content')

Dashboard Propietario

Nueva Cancha Nuevo Evento
Mis Canchas
{{ $estadisticas['total_canchas'] }}
Reservas Este Mes
{{ $estadisticas['reservas_mes'] }}
Eventos Activos
{{ $estadisticas['eventos_activos'] }}
Ingresos Este Mes
${{ number_format($estadisticas['ingresos_mes'], 2) }}
Mis Canchas
Agregar Cancha
@if($misCanchas->count() > 0)
@foreach($misCanchas as $cancha) @endforeach
Nombre Tipo Estado Precio/Hora Reservas Hoy Acciones
{{ $cancha->nombre }} {{ $cancha->categoria->nombre }} {{ ucfirst($cancha->estado) }} ${{ number_format($cancha->precio_por_hora, 2) }} {{ $cancha->reservas_hoy_count ?? 0 }}
@else

No tienes canchas registradas aún.

Crear Primera Cancha
@endif
Reservas Recientes
@if($reservasRecientes->count() > 0) @foreach($reservasRecientes as $reserva)
{{ $reserva->cancha->nombre }}

{{ $reserva->usuario->nombre }} - {{ format_date_es($reserva->fecha) }}

{{ format_time_range_12h($reserva->hora_inicio, $reserva->hora_fin) }}

{{ ucfirst($reserva->estado) }}
@endforeach @else

No hay reservas recientes

@endif
Mis Eventos
Crear Evento
@if($misEventos->count() > 0)
@foreach($misEventos as $evento)
{{ $evento->nombre }}
{{ ucfirst($evento->estado) }}

{{ $evento->cancha->nombre }}

{{ format_datetime_12h($evento->fecha_inicio) }}

{{ $evento->participantes_count ?? 0 }}/{{ $evento->max_participantes ?? '∞' }} participantes

@endforeach
@else

No tienes eventos creados aún.

Crear Primer Evento
@endif
@endsection