@extends('layouts.app') @section('content')
@if($delegate->profile_photo_path) {{ $delegate->name }} @else
{{ strtoupper(substr($delegate->name, 0, 1)) }}
@endif

{{ $delegate->name }}

{{ $delegate->phone ?? '—' }}

خط السير: {{ $delegate->route?->name ?? 'غير محدد' }}
عدد المشاوير
{{ $stats['count'] }}
إجمالي التكلفة
{{ number_format($stats['total_cost'], 0) }}
ج.م
مستحق للدفع
{{ number_format($stats['pending_cost'], 0) }}
ج.م
مدفوع
{{ number_format($stats['paid_cost'], 0) }}
ج.م
@csrf
ج.م
سجل المشاوير
@forelse($trips as $trip) @empty @endforelse
التاريخ الوصف التكلفة الحالة إجراءات
{{ $trip->date->format('Y-m-d') }} {{ $trip->description ?? '—' }} {{ number_format($trip->cost, 2) }} ج.م @if($trip->status === 'paid') مدفوع @else مستحق @endif
@csrf @method('PATCH') @if($trip->status === 'pending') @else @endif
@csrf @method('DELETE')
لا توجد مشاوير مسجلة لهذا المندوب
@if($trips->hasPages()) @endif
@endsection