@extends('backend.template.layouts.template-base') @section('title', $person->name . ' Details') @section('content') {{-- Header --}} {{ $person->name }} Details @if($person->status === 'active') Mark as Inactive @else Mark as Active @endif Edit Details Delete Person {{-- Summary Card --}} @if($person->person_image) @else @endif {{ $person->name }} {{ $person->person_code }} | Added by : {{ $person->createdBy?->name ?? '—' }} | Last Updated on : {{ $person->updated_at->format('d/m/Y') }} | Last Updated by : {{ $person->updatedBy?->name ?? '—' }} | Total Orders: 000 Status {{ ucfirst($person->status) }} {{-- Person Info Card --}} Person Info Person Name {{ $person->name }} Contact Number {{ $person->contact_number }} Alternate Contact Number {{ $person->alternate_contact ?? '—' }} Email Address {{ $person->email }} Zone {{ $person->zone?->name ?? '—' }} DOB (Date Of Birth) {{ $person->dob ? $person->dob->format('d/m/Y') : '—' }} Gender {{ ucfirst($person->gender) }} Address {{ $person->address }} {{-- Documents --}} @foreach([['aadhar_image','Aadhar Image'],['dl_front_image','Driving License front'],['dl_back_image','Driving License back']] as [$field,$label]) {{ $label }} (Image size 600×450) @if($person->$field) @else @endif @endforeach {{-- Orders Info --}} Orders Info All Zones @foreach(\App\Models\DeliveryZone::where('status','active')->orderBy('name')->get() as $zone) {{ $zone->name }} @endforeach Show @foreach([10,25,50,100] as $n){{ $n }}@endforeach entries Order ID Customer Details Payment Mode Total Qty Total Order Value Under Delivery Zone Order Status Status updated On Action No orders found. {{-- Status Modal --}}
Are you sure you want to delete {{ $person->name }}? This action cannot be undone.