@php
$p=1;
$action_id=9;
$total=0;
$totalMemo=0;
@endphp
@forelse ($orders as $i=>$item)
@if(isMarketingEnable()==1 && Request()->status==0)
|
showroom_id!=0)) disabled="disabled" @endif value="{{$item->id}}">
|
@else
|
@endif
{{ ($p++) }} |
{{ date('d-M-Y h:i A',strtotime($item->date)) }}
|
{{-- {{ $type>3?$item->order_no:$item->transaction_no }} | --}}
@if($type>3)
{{ $item->shop?$item->shop->name:'N/A' }}
{{-- {{ $item->party?$item->party->name_eng:'N/A' }} --}}
@else
{{ $item->srParty?$item->srParty->name_eng:'N/A' }}
@endif
|
@if($type==3)
{{ $item->memo_no }} |
@endif
@php
$totalMemo+=$item->memo_no;
$total+=($type>3||$type==2)?$item->net_total:$item->details_sum;
@endphp
{{round(($type>3||$type==2)?$item->net_total:$item->details_sum)}}
|
Detail
@if($route_group=='sr_order_list' && checkAuthPermission('marketing.sr_order_update'))
Edit
Delete
@else
{{-- if($type==119 && checkAuthPermission('marketing.rm_target_update')) --}}
Edit
Delete
@endif
|
@empty
@endforelse
| TOTAL |
@if($type==3)
{{round($totalMemo)}} |
@endif
{{round($total)}} |
|