@extends('admin.layouts.master') @section('title', 'مبيعات المندوبين') @section('page_title', 'تقرير المبيعات حسب المندوب') @section('breadcrumbs')
| المندوب | عدد الفواتير | إجمالي المبيعات | المحصّل | العمولة المقدّرة ({{ $commissionPct }}%) |
|---|---|---|---|---|
| {{ $r->salesperson?->name }} | {{ $r->invoice_count }} | {{ number_format((float) $r->total, 2) }} | {{ number_format((float) $r->paid, 2) }} | {{ number_format($commission, 2) }} |
| الإجمالي | {{ $report['totals']['invoice_count'] }} | {{ number_format($report['totals']['total'], 2) }} | {{ number_format($report['totals']['paid'], 2) }} | {{ number_format(round($report['totals']['total'] * $commissionPct / 100, 2), 2) }} |