@extends('layouts.app') @section('title', 'Dashboard') @section('content') @php $showSummaryCards = auth()->user()->roles->pluck('name')->intersect(['Super Admin', 'Co Admin', 'Auditor'])->isNotEmpty(); $showPackages = auth()->user()->roles->pluck('name')->intersect(['Super Admin', 'Co Admin', 'Branch Manager', 'Branch Staff'])->isNotEmpty(); $showRequests = auth()->user()->roles->pluck('name')->intersect(['Super Admin', 'Co Admin', 'Ticket Admin', 'Ticket Staff'])->isNotEmpty(); $stats = [ 'visaSubmitted' => 120, 'visaIssued' => 80, 'visaPending' => 68, 'inboundTicket' => 1200, 'outboundTicket' => 656, 'pendingTicket' => 45, 'totalInvoice' => 312, 'totalDue' => '124,500 SAR', 'totalProfit' => '89,750 SAR', 'totalFingerprint' => 156, 'totalPassengers' => 892, 'totalReceived' => 86, 'totalDueCollection' => '67,250 SAR', 'departureDone' => 50, 'departureStay' => 30, ]; $reissueRequests = [ ['id' => 1, 'invoiceId' => 1001, 'invoiceNo' => 'INV-2024-001', 'branch' => 'Riyadh', 'passengers' => ['count' => 2]], ]; $addTicketRequests = []; $refundRequests = []; @endphp

Dashboard

@if($showSummaryCards)

Visa

{{ $stats['visaSubmitted'] }}
Submitted
{{ $stats['visaIssued'] }}
Issued
{{ $stats['visaPending'] }}
Pending
This Month
{{ $inboundTicket ?? 0 }}
Inbound Ticket
{{ $outboundTicket ?? 0 }}
Outbound Ticket
{{ $pendingTicket ?? 0 }}
Pending Ticket
This Month
{{ $totalInvoice ?? 312 }}
Total Invoice
This Month
{{ $totalDue ?? '124,500 SAR' }}
Total Due
Receivable
{{ $totalProfit ?? '89,750 SAR' }}
Total Profit
This Month
{{ $totalFingerprint ?? 156 }}
Total Fingerprint
This Month
{{ $totalPassengers ?? 892 }}
Total Passengers
This Month
{{ $totalReceived ?? 86 }}
Total Received
New Booking (This Month)
{{ $totalDueCollection ?? '67,250 SAR' }}
Total Due Collection
Collection (This Month)

Departure

{{ $departureDone ?? 50 }}
Done
{{ $departureStay ?? 30 }}
Stay
This Month
Last Updated: Just now
@endif
@if($showPackages)

Popular Packages

@endif @if($showRequests)
@endif
@endsection