@extends('layouts.admin.app') @section('title', 'Quản lý booking') @section('content') @php $tripStatusLabels = [ 'open' => 'Mở bán', 'closed' => 'Đóng bán', 'completed' => 'Hoàn thành', 'cancelled' => 'Đã hủy', ]; @endphp

Quản lý booking theo chuyến

Thống kê ngày: {{ \Carbon\Carbon::parse($statsDate)->format('d/m/Y') }}

Tổng chuyến trong ngày

{{ number_format((int) ($stats['total_trips'] ?? 0)) }}

Tổng booking trong ngày

{{ number_format((int) ($stats['total_bookings'] ?? 0)) }}

{{-- [TEMPORARILY HIDDEN: Tổng doanh thu]

Tổng doanh thu trong ngày

{{ number_format((float) ($stats['total_revenue'] ?? 0)) }}đ

[END HIDDEN] --}}
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
{{-- [TEMPORARILY HIDDEN: Cột Giá vé] --}} {{-- --}} {{-- [END HIDDEN] --}} @forelse ($items as $item) {{-- [TEMPORARILY HIDDEN: Hiển thị giá vé] [END HIDDEN] --}} @empty @endforelse
Ngày/Giờ chạy Tuyến XeGiá véTrạng thái Tác vụ
{{ $item->trip_date?->format('d/m/Y') }}
{{ $item->depart_at?->format('H:i') }} - {{ $item->arrive_at?->format('H:i') }}
{{ $item->route?->code }}
{{ $item->route?->fromStation?->name }} - {{ $item->route?->toStation?->name }}
{{ $item->vehicle?->name }}{{ number_format($item->price) }}đ{{ $tripStatusLabels[$item->status] ?? $item->status }} Xem chi tiết
Không có dữ liệu
{{ $items->withQueryString()->links() }}
@endsection