@if(count($order_status)) @foreach($order_status as $item) {{$item->id == 1 ? "Chờ vận đơn" : @$item->name}} ({{isset($order_group[$item->id]) ? $order_group[$item->id] : 0}}) @endforeach Tất cả ({{array_sum($order_group->toArray())}}) @endif
{{----}} {{----}} {{----}} @if(count($orders)) @foreach($orders as $key => $item) @if($item) {{----}} {{----}} {{----}} {{-- {{$sum[$item->id]++}}--}} @endif @endforeach @endif
Sale Mã đơn
Ngày chốt đơn
Kho
PTGH
Mã giao vận
Care đơn
Ghi chú kho
Trạng thái giao hàng Họ tên
Số điện thoại
Địa chỉ
Ghi chú giao hàng
Sản phẩm SL Đơn giá Thành tiền CKPhí dịch vụ VCPhí VC hỗ trợ kháchPhí VC thu của kháchKhách đặt cọc Thực thu
{{--(Thực thu)--}}
Phụ trách
{{$key+1}} {{@$item->sale->name}} {{$item->code}}
{{ $item->ngay_chot_don ? date("d / m / Y H:i", strtotime($item->ngay_chot_don)) : date("d / m / Y H:i", strtotime($item->updated_at))}}
{{@$item->depot->name}}
Thủ công

{{!empty($item->customer) && $item->customer->messages != "" && $item->customer->messages != "[]" ? json_decode($item->customer->messages)[0]->message : ''}}
 
{{$item->status == 1 ? 'Chờ vận đơn' : @$item->orderStatus->name}}
({{\App\Models\Order::getTextShip($item->type_ship)}}) @php $color = $item->hoa_hong == 1 ? 'green' : 'red'; @endphp @if( $item->hoa_hong) @endif @if ($item->goi_dau) @endif
{{$item->customer_name ?: @$item->customer->name}} {{$item->is_upsale ? '(Upsale)' : ''}}
{{@$item->customer->phone}} @if(@$item->customer->customer_old) @endif
{{date("d / m / Y H:i", strtotime(@$item->customer->created_at))}}
{{@$item->address_text}} {!! @$item->order_text['product_text'] !!} {!! @$item->order_text['product_quantity'] !!} {!! @$item->order_text['product_price'] !!} {{@number_format($item->sum_total)}} {{@number_format($item->discount)}}{{@number_format($item->advance_price)}} {{@number_format($item->total)}} {{@$item->warehouse->name}}
({{@$item->warehouse->username}})
@if($orders->currentPage() == $orders->lastPage()) ({{$orders->total()}}/{{$orders->total()}}) @else ({{$orders->currentPage()*$orders->perPage()}}/ {{$orders->total()}}) @endif {{$orders->links()}}
{{--
--}} {{--@if(count($order_status))--}} {{--@foreach($order_status as $item)--}} {{----}} {{----}} {{--{{$item->id == 1 ? "Chờ vận đơn" : $item->name}}--}} {{--({{$sum[$item->id]}})--}} {{----}} {{----}} {{----}} {{--@endforeach--}} {{--@endif--}} {{--
--}}