@extends('admin.layout.master') @section('title','FORECAST LIST') @section('custom_style') @endsection @section ('content')

FORECAST LIST

{{-- --}}
@if($type<4)
@endif
{{--
--}} {{--
--}}
@csrf
{{-- --}}
@if(isMarketingEnable()==1 && Request()->status==0) @endif @if(isMarketingEnable()==1 && Request()->status==0) @else @endif @php $p=1; $action_id=9; $total=0; @endphp @forelse ($orders as $i=>$item) @if(isMarketingEnable()==1 && Request()->status==0) @else @endif @empty @endforelse
showroom_id!=0)) disabled="disabled" @endif onclick="selectAllChild(this)">
# Date Transaction No Name Amount Action
showroom_id!=0)) disabled="disabled" @endif value="{{$item->id}}">
{{ ($p++) }} {{ date('d-M-Y h:i A',strtotime($item->date)) }} {{ $item->order_no }} {{ $item->party?$item->party->name_eng:'N/A' }} @php $sub=$item->details->sum(function($q){return ($q->order_qty*$q->order_price);}); $total+=$sub; @endphp {{round($sub)}} Detail @if(checkAuthPermission('marketing.forecast_update')) Edit Delete @endif
TOTAL {{round($total)}}

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