@extends('shared.admin') @section('content')

Orders

All Orders

{{----}} @for ($i = 0; $i < count($list); $i++) @php $m = $list[$i]; @endphp {{----}} @endfor
No Item Name Date Address Phone Product Source Campaign Status Action
{{ (($current_page - 1) * $page_size + $i + 1) }} {{ 'ORDER' . $m->id }} {{ $m->fullname }} {{ $m->created_at }} {{ $m->address }} {{ $m->phone }} @php $product = $listProduct[$i]; $quanlity = 0; $price = 0; $subtotal = 0; if($product != null && count($product) >=1){ foreach($product as $item1) { $quanlity = $item1->quanlity; $price = $item1->price; echo $item1->title . '
'; echo ' - Số lượng : ' . $item1->quanlity . '
'; $subtotal += $item1->quanlity * $item1->price; } if($m->promocode != '') echo 'Mã giảm giá: ' . $m->promocode . '
'; if($m->totalprice != '' || $m->totalprice == '0'){ echo ' Thành tiền : ' . $m->totalprice . '
'; } else{ echo ' Thành tiền : ' . $subtotal . '
'; } if($m->paymentmethod != ''){ if($m->momotransid != ''){ echo $m->paymentmethod . ' - ' . $m->paymentstatus. ' - ' . $m->momotransid; } else{ echo $m->paymentmethod . ' - ' . $m->paymentstatus; } } } @endphp
@if($m->channel == 'Sapporo Landing Page') Website @elseif($m->channel == 'Leadbridge') Facebook @else @if($m->channel != '') {{ $m->channel }} @else Other @endif @endif {{ $m->campaign }} @if($m->status == 1) Pending @elseif($m->status == 6) Redial @elseif($m->status == 2) Confirmed @elseif($m->status == 3) In Progress @elseif($m->status == 4) Completed @elseif($m->status == 5) Cancel @endif $m->id]) }}")' title="Delete" title="">
{{--{{ $m->request }}--}}
{{--
@if($m->paymentmethod != '')
@endif @if($m->promocode != '')
@endif
Thông tin xuất hóa đơn

--}}
{{--
--}}
@endsection @section('script') @endsection