@extends('layouts.admin') @section('title', 'Partner Applications') @section('header', 'Partner Applications') @section('content')
Total Applications

{{ $stats['total'] }}

Pending Review

{{ $stats['pending'] }}

Approved

{{ $stats['approved'] }}

Rejected

{{ $stats['rejected'] }}

@forelse($applications as $app) @empty @endforelse
ID Type Business/Name Contact City Submitted Status Actions
#{{ $app->id }} @if($app->partner_type == 'restaurant') Store @else Driver @endif
{{ $app->partner_type == 'restaurant' ? $app->business_name : $app->full_name }}
{{ $app->partner_type == 'restaurant' ? $app->business_email : $app->email }}
{{ $app->partner_type == 'restaurant' ? $app->contact_phone : $app->phone }}
{{ $app->partner_type == 'restaurant' ? $app->contact_email : $app->email }}
{{ $app->city }} {{ $app->created_at->format('d M Y') }} @if($app->status == 'pending') Pending @elseif($app->status == 'approved') Approved @else Rejected @endif
@if($app->status == 'pending') @endif
@csrf @method('DELETE')
No applications found
@endsection