@if(count($customer_status)) @foreach($customer_status as $key => $item) {{$item->name}} ({{isset($customer_expired[$item->id]) ? $customer_expired[$item->id] : 0}}/ {{isset($customer_group[$item->id]) ? $customer_group[$item->id] : 0}}) @endforeach @endif Tất cả ({{array_sum($customer_group->toArray())}})
@if(isset($docs) && count($docs)) @foreach($docs as $key => $item) {{--{{dd($item)}}--}} @if(count($item->orders) && $item->orders->last()) {{----}} @else @endif {{----}} {{----}} {{----}} {{----}} {{--@if (count($item->orders))--}} {{--{{dd($item->orders->last())->orderStatus->name}}--}} {{--@endif--}} @if(count($item->orders) && $item->orders->last()->status == 0) @else @endif @endforeach @else @endif
# Mã đơn landing
Ngày data về
Sale
Ngày nhận data
Họ tên Tin nhắn Trạng thái KH T/G tác nghiệp Chuyển vể CSKH Sản phẩm SL Tổng tiền Trạng thái đơn hàng
{{@$key+1}} {{@$item->orders->last()->code}}
({{@$item->orders->last()->wareHouse->username}})
({{@$item->orders->last()->wareHouse->name}})
{{@str_limit($item->orders->last()->code,5,'xxxx')}} {{@$item->source->name}}
({{\App\Helpers\Functions::dayMonthYear($item->created_at)}})
{{@$item->sale->name}}
({{@$item->sale->username}})
({{$item->date_sale_nhan_data ? \App\Helpers\Functions::dayMonthYear($item->date_sale_nhan_data) : \App\Helpers\Functions::dayMonthYear($item->created_at)}})
@if(count($item->orders) && $item->orders->last()->status != 0) @endif
@if($item->duplicate) @endif
{{@$item->name}}
{{@$item->phone}} @if($item->customer_old) @endif
{{----}}
{{--{{@$item->message}}--}}

{{$item->messages != "" && $item->messages != "[]" ? json_decode($item->messages)[0]->message : ''}}
{!! @$item->expired_text !!} {!! @$item->time_move !!} {!! @$item->order_text->products !!} {{@number_format($item->sum_quantity)}}{!! count($item->orders) ? @$item->orders->last()->order_text['product_quantity'] : '' !!} {{@number_format($item->total_price)}}Đã lưu đơn{{count($item->orders)?@$item->orders->last()->orderStatus->name:""}}
Không có dữ liệu
@if($docs->currentPage() == $docs->lastPage()) ({{$docs->total()}}/{{$docs->total()}}) @else ({{$docs->currentPage()*$docs->perPage()}}/ {{$docs->total()}}) @endif {{$docs->onEachSide(1)->links()}}