| {{ $row->order_number }} |
{{ $row->paymentMethod ? $row->paymentMethod->name : '' }} |
{{ date('d-m-Y', strtotime($row->created_at)) }} |
{{ date('H:i:s A', strtotime($row->created_at)) }} |
{{ $row->status }} |
{{ $row->shipptype ? $row->shipptype->name : '' }} |
{{ $name. ' ' . '(' . $phone . ')' }} |
@php
$company = App\models\productOrder::where('order_id', $row->id)->distinct('company_id')->count('company_id');
@endphp
{{ $company }} |
{{-- @php--}}
{{-- $company = App\models\productOrder::where('order_id', $row->id)->distinct('company_id')->count('company_id');--}}
{{-- if ($company <= 2) {--}}
{{-- $ship_cost = setting('CollectMeTwoCompany');--}}
{{-- } elseif ($company > 2) {--}}
{{-- $ship_cost = setting('CollectMeTwoCompany') + setting('CollectMeanyCompany');--}}
{{-- }--}}
{{-- @endphp--}}
{{ $row->price_ship }} |
@endforeach