@extends('Admin.layout') @section('content')
Edit Delivery Partner
{{-- Delete --}}
@csrf
Rider Details
@if (!empty($partner->image)) {{ basename($partner->image) }} @endif
Vehicle Details
Bank Details
@if($documentTypes->count() > 0)
@foreach($documentTypes as $documentType) @php $doc = $documents[$documentType->id] ?? null; $filePath = $doc->file_path ?? null; $docUrl = $filePath ? asset('storage/' . $filePath) : null; $fileName = $filePath ? basename($filePath) : ''; $status = strtolower($doc->status ?? 'pending'); $ext = $filePath ? strtolower(pathinfo($filePath, PATHINFO_EXTENSION)) : ''; $isPdf = $ext === 'pdf'; $documentName = ucwords( str_replace('_', ' ', $documentType->name) ); @endphp
Upload {{ $documentName }}
{{ ucfirst($status) }}
Drop your file here

or

Click the upload icon to browse

Supported formats: PDF, JPG, PNG

Max file size: 5 MB

{{ $documentName }}
{{ $fileName }}
@if($status === 'approved') @else @endif
@endforeach
@else
No active document types available.
@endif
{{--
@php $doc = $documents['aadhar'] ?? null; $filePath = $doc->file_path ?? null; $docUrl = $filePath ? asset('storage/' . $filePath) : null; $fileName = $filePath ? basename($filePath) : ''; $status = strtolower($doc->status ?? 'pending'); $ext = $filePath ? strtolower(pathinfo($filePath, PATHINFO_EXTENSION)) : ''; $isPdf = $ext === 'pdf'; @endphp
Upload Aadhaar Card
{{ ucfirst($status) }}
Drop your file here

or

Click the upload icon to browse

Supported formats: PDF, JPG, PNG

Max file size: 5 MB

Aadhaar Card
{{ $fileName }}
@if ($status === 'approved') @else @endif
@php $doc = $documents['pan'] ?? null; $filePath = $doc->file_path ?? null; $docUrl = $filePath ? asset('storage/' . $filePath) : null; $fileName = $filePath ? basename($filePath) : ''; $status = strtolower($doc->status ?? 'pending'); $ext = $filePath ? strtolower(pathinfo($filePath, PATHINFO_EXTENSION)) : ''; $isPdf = $ext === 'pdf'; @endphp
Upload PAN Card
{{ ucfirst($status) }}
Drop your file here

or

Click the upload icon to browse

Supported formats: PDF, JPG, PNG

Max file size: 5 MB

PAN Card
{{ $fileName }}
@if ($status === 'approved') @else @endif
@php $doc = $documents['license'] ?? null; $filePath = $doc->file_path ?? null; $docUrl = $filePath ? asset('storage/' . $filePath) : null; $fileName = $filePath ? basename($filePath) : ''; $status = strtolower($doc->status ?? 'pending'); $ext = $filePath ? strtolower(pathinfo($filePath, PATHINFO_EXTENSION)) : ''; $isPdf = $ext === 'pdf'; @endphp
Upload License
{{ ucfirst($status) }}
Drop your file here

or

Click the upload icon to browse

Supported formats: PDF, JPG, PNG

Max file size: 5 MB

Upload License
{{ $fileName }}
@if ($status === 'approved') @else @endif
@php $doc = $documents['rc_book'] ?? null; $filePath = $doc->file_path ?? null; $docUrl = $filePath ? asset('storage/' . $filePath) : null; $fileName = $filePath ? basename($filePath) : ''; $status = strtolower($doc->status ?? 'pending'); $ext = $filePath ? strtolower(pathinfo($filePath, PATHINFO_EXTENSION)) : ''; $isPdf = $ext === 'pdf'; @endphp
Upload RC Book
{{ ucfirst($status) }}
Drop your file here

or

Click the upload icon to browse

Supported formats: PDF, JPG, PNG

Max file size: 5 MB

RC Book
{{ $fileName }}
@if ($status === 'approved') @else @endif
--}}
{{-- --}} {{-- --}} @endsection