@php $title = isset($filter) && ($filter == 1)?'Doanh thu':'Doanh số'; @endphp
@if(count($sales)) {{----}} @foreach($sales as $key => $item) {{----}} @endforeach @endif
STT SALE TÁC NGHIỆP
(1)
KHÁCH HÀNG MỚI KHÁCH HÀNG CŨ
{{($title)}} sau CK (6)
KHÁCH HÀNG GIỚI THIỆU
{{($title)}} sau CK (7)
TỔNG CHUNG
SĐT
(2)
Đơn chốt
(3)
Tỷ lệ chốt(%)
(3)/(2)
{!! $title !!} sau CK (4) Doanh số tối ưu (5) {!! $title !!} Upsale
(6)+(7)
TB đơn
(9)/(8)
Đơn chốt
(8)
{!! $title !!} sau CK (9)
Tổng: {{number_format($sales->sum('history'))}}{{!empty($sales->sum('countTotal'))?round(($sales->sum('chot_don') + $sales->sum('khach_tiem_nang')+ $sales->sum('nhu_cau_thap'))/($sales->sum('contact') - $sales->sum('khach_moi'))*100,1):0}}--}} {{--%--}} {{--{{number_format($sales->sum('contact'))}} {{number_format($sales->sum('orders_new'))}} {{ !empty($sales->sum('contact')) && !empty($sales->sum('orders_new'))?round(($sales->sum('orders_new')/$sales->sum('contact'))*100,1):0}}% {{number_format($sales->sum('totalOnTime'))}} {{($sales->sum('totalAll') - $sales->sum('totalOnTime') - $sales->sum('total') - $sales->sum('total_gioithieu')>0)?number_format($sales->sum('totalAll') - $sales->sum('totalOnTime') - $sales->sum('total') - $sales->sum('total_gioithieu')):0}} {{number_format($sales->sum('total'))}} {{number_format($sales->sum('total_gioithieu'))}} {{number_format($sales->sum('total')+$sales->sum('total_gioithieu'))}} {{!empty($sales->sum('totalAll'))?number_format(round(($sales->sum('totalAll')/$sales->sum('countTotal')),1)):0}} {{number_format($sales->sum('countTotal'))}} {{number_format($sales->sum('totalAll'))}}
{{$key+1}} {{@$item->name}} {{@number_format($item->history)}}{{!empty($item->countTotal)?round(($item->chot_don + $item->khach_tiem_nang+ $item->nhu_cau_thap)/($item->contact - $item->khach_moi)*100,1):0}}--}} {{--%--}} {{--{{@number_format($item->contact)}} {{@number_format($item->orders_new)}} {{!empty($item->contact) && !empty($item->orders_new)?round(($item->orders_new/$item->contact)*100,1):0}} % {{@number_format($item->totalOnTime)}} {{($item->totalAll - $item->totalOnTime - $item->total - $item->total_gioithieu)>0? @number_format($item->totalAll - $item->totalOnTime - $item->total - $item->total_gioithieu):0}} {{@number_format($item->total)}} {{@number_format($item->total_gioithieu)}} {{@number_format($item->total+$item->total_gioithieu)}} {{!empty($item->countTotal) ?number_format(round(($item->totalAll/$item->countTotal),1)):0}} {{@number_format($item->countTotal)}} {{@number_format($item->totalAll)}}
{{----}}