@extends('layout.master') @section('title', 'Détail du livreur') {{-- Changed to Livreur for consistency --}} @section('css') @endsection @section('main-content')

Détail du livreur

{{-- Consistent title --}}
{{-- IMPORTANT: Use the correct variable names passed from the controller --}} @if ($user && $deliveryPerson) {{-- Check both user and deliveryPerson --}}
{{-- Dynamic profile picture --}}
{{-- This part is for image upload, which isn't handled by this view's scope. Consider removing or making it a Livewire component if upload is intended here. For now, I'm keeping it but noting its current lack of functionality. --}}
{{-- Also dynamic --}}
{{ $user->first_name ?? '-' }} {{ $user->last_name ?? '-' }} {{-- Using $user --}} {{-- The checkmark image might be for verification, adjust as needed --}} verified
{{-- This "Profile" button seems to have no defined action. If it's meant to edit the profile, you'd link it there. For now, it's just a button. Removed the ID if not used for JS. --}}
Détails du livreur (ID: {{ $deliveryPerson->id }})
Nom

{{ $user->last_name ?? '-' }}

Prénom

{{ $user->first_name ?? '-' }}

Email

{{ $user->email ?? '-' }}

Téléphone

{{ $user->phone_number ?? '-' }}

Adresse

{{ $user->address ?? '-' }}

Date de création

{{ $user->created_at ? $user->created_at->format('d/m/Y') : '-' }}

Commandes du livreur
@livewire('user.delivery-person-order-data-table', ['user' => $user])
@else

Livreur non trouvé ou profil incomplet.

@endif
@endsection @section('script')
@endsection