@extends('admin.layout.master') @section('title',$type==5?'TARGET':'FORECAST') @section('custom_style') @endsection @section ('content')
| # | {{ $orders->first()->transaction_type>200?'Product':'Category' }} | Price | Qty | {{'Subtotal'}} | |
|---|---|---|---|---|---|
| {{ (++$p) }} | {{--{{ date('d-M-Y h:i A',strtotime($item->date)) }} | --}}{{ $item->transaction_type>200?$item->product->name_eng:$item->category->name_eng }} | {{($item->order_price*$item->unit_qty)}} | @if(Request()->edit_forecast) @else {{($item->order_qty/$item->unit_qty)}} {{$item->transaction_type>200?'('.$item->product->primaryUnit->name.')':''}} @endif | {{($item->order_qty*$item->order_price)}} @php $total+=($item->order_qty*$item->order_price); @endphp |
| {{ 'TOTAL' }} | {{$total}} | ||||