@if(count($user)) @php $i = 0 @endphp @foreach($user as $item) @if((int)($item->all) > 0) @php $i ++ @endphp @endif @endforeach @endif
STT TÊN SALE DOANH SỐ TẠM TÍNH (A) DOANH SỐ CHỜ XÁC NHẬN (B) DOANH SỐ ĐANG PHÁT (C) DOANH THU TẠM TÍNH(D) DOANH THU THỰC (E) DOANH THU GỐI ĐẦU (E) % KHO HỦY % KHO HOÀN
Upsale Tổng Thành công Hoàn
Tổng {{number_format($user->sum('all'))}} {{number_format($user->sum('cho_xac_nhan'))}} {{$user->sum('dang_giao_hang')>0?number_format($user->sum('dang_giao_hang')):0}} {{number_format($user->sum('doanh_thu'))}} {{number_format($user->sum('done_upsale'))}} {{number_format($user->sum('done'))}} {{number_format($user->sum('done_goidau'))}} {{number_format($user->sum('hoan_goidau'))}} {{!empty($user->sum('huy')) && !empty($user->sum('countAll'))?round($user->sum('huy')/$user->sum('countAll')*100,1):0}} % {{!empty($user->sum('hoan'))?round($user->sum('hoan')/$user->sum('countAll')*100,1):0}} %
{{$i}} {{@$item->name}} {{@number_format($item->all)}} {{$item->cho_xac_nhan>0?@number_format($item->cho_xac_nhan):0}} {{$item->dang_giao_hang>0?@number_format($item->dang_giao_hang):0}} {{@number_format($item->doanh_thu)}} {{@number_format($item->done_upsale)}} {{@number_format($item->done)}} {{@number_format($item->done_goidau)}} {{@number_format($item->hoan_goidau)}} {{!empty($item->huy) && !empty($item->countAll)?round($item->huy/$item->countAll*100,1):0}}% {{!empty($item->hoan)?round($item->hoan/$item->countAll*100,1):0}}%