@extends('layouts.app') @section('title', 'تفاصيل العمولة') @section('content')

تفاصيل العمولة

العودة

{{ $commission->salesRepresentative->employee->user->name ?? '---' }}

{{ $commission->customerInvoice->invoice_number }}

{{ number_format($commission->amount, 2) }}

@php $statusLabels = [ 'pending' => 'معلق', 'earned' => 'مكتسب', 'paid' => 'مدفوع', 'cancelled' => 'ملغي', ]; @endphp {{ $statusLabels[$commission->status] ?? $commission->status }}

تحديث الحالة

@csrf @method('PATCH')
@endsection