@extends('layouts.admin') @section('title', 'Driver Gigs') @section('content')

Total Today

{{ $stats['total_today'] }}

Active Today

{{ $stats['active_gigs'] }}

Open Global Slots

{{ $stats['globally_open'] }}

Completed Today

{{ $stats['completed_today'] }}

Bulk Create Global Slots
@csrf
All Gig Slots
@foreach([ 'Available Slots' => $availableGigs, 'Booked Slots' => $bookedGigs, 'Completed Slots' => $completedGigs, 'Cancelled Slots' => $cancelledGigs, ] as $groupLabel => $groupItems) @if($groupItems->isNotEmpty()) @endif @forelse($groupItems as $gig) @empty @endforelse @endforeach @if($availableGigs->isEmpty() && $bookedGigs->isEmpty() && $completedGigs->isEmpty() && $cancelledGigs->isEmpty()) @endif
Slot Area Date & Time Driver Conditions Estimated Earning Status Actions
{{ $groupLabel }}
{{ $gig->title ?: 'Gig Slot #' . $gig->id }}
{{ $gig->description ?: 'No description added' }}
{{ $gig->area?->name ?? 'No area' }}
{{ $gig->date?->format('d M Y') }}
{{ optional($gig->start_time)->format('h:i A') }} - {{ optional($gig->end_time)->format('h:i A') }}
{{ $gig->driver?->name ?? 'Open for booking' }}
Min login: {{ $gig->min_login_minutes }} mins
Min orders: {{ $gig->min_orders_required }}
Max cancels: {{ $gig->max_cancellations_allowed }}
{{ number_format((float) $gig->estimated_earning, App\Models\AppSetting::currencyDecimals()) }} {{ ucfirst($gig->status) }}
Edit
@csrf @method('DELETE')
No gig slots found yet.
@endsection