@if (count($data)) @foreach($data as $k => $c) @endforeach @else @endif
STT Phụ trách SĐT Lịch hẹn Đơn hàng Doanh số Doanh thu Còn nợ TB đơn
{{ $k +1 }} {{ $c['full_name'] }} {{$c['customers']}} {{$c['schedules']}} {{$c['orders']}} {{number_format($c['all_total'])}} {{number_format($c['gross_revenue'])}} {{number_format($c['the_rest'])}} {{!empty($c['orders'])?number_format($c['all_total'] / $c['orders']):0}}
Tổng {{number_format($data->sum('customers'))}} {{number_format($data->sum('schedules'))}} {{number_format($data->sum('orders'))}} {{number_format($data->sum('all_total'))}} {{number_format($data->sum('gross_revenue'))}} {{number_format($data->sum('the_rest'))}} {{!empty($data->sum('orders'))?number_format($data->sum('all_total')/$data->sum('orders')):0}}
Không tồn tại dữ liệu