@extends('layouts.order-master') @section('css') @endsection @section('title') Order @endsection @section('content')

ORDER DETAILS

Go Back
ORDER CODE

{{ $order->order_code }}

ORDER DATE

{{ \Carbon\Carbon::parse($order->order_date)->format('d M Y') }}

Customer

{{ $order->debitLedger?->name }}

Customer Address

{{ $order->debitLedger?->address ?? '--' }}

PRICE SLAB

{{ $order->priceSlab->name ?? '--' }}

STOCK LOCATION

{{ $order->stockLocation->name ?? '--' }}

TAX TYPE
@if ($igst)

Interstate(IGST)

@else

Intrastate

@endif
REMARKS

{{ $order->remarks ?? '--' }}

SHIPPING ADDRESS

{{ $order->shipping_address ?? '--' }}

ITEMS

@if(Auth::user()->hasFeature('PURCHASE_ORDER_FROM_ORDER')) @endif @php $totalTaxableValue = 0; @endphp @foreach ($orderItems as $item) @if(Auth::user()->hasFeature('PURCHASE_ORDER_FROM_ORDER')) @endif @endforeach
Item MRP Qty Unit Price Price (Inc GST) Gross Value Dis % Taxable Value CGST SGST IGST CESS TotalPO Status
{{ $item->stockItem->name }} {{ $item->stockItem->getMrp($order->order_date) }} {{ $item->quantity }} {{ $item->unit->symbol }} {{ $item->price }} {{ $item->price_inc_tax }} {{ $item->gross_value }} {{ $item->disc_percentage }} @php $totalTaxableValue += $item->taxable_value; @endphp {{ $item->taxable_value }} {{ $item->cgst }} {{ $item->sgst }} {{ $item->igst }} {{ $item->cess }} {{ $item->total }} @php $purchaseOrderItems = App\Models\PurchaseOrderItem::where('order_item_id', $item->id)->get(); @endphp @if($purchaseOrderItems->count() > 0) @foreach ($purchaseOrderItems as $purchaseOrderItem)

PO-CODE: {{ $purchaseOrderItem->purchaseOrder->purchase_order_code }} - QTY : {{ number_format($purchaseOrderItem->quantity,2) }} - {{ $purchaseOrderItem->purchaseOrder->status }}

@endforeach @endif
Total {{ round($totalTaxableValue, 2) }} {{ $orderItems->sum('cgst') }} {{ $orderItems->sum('sgst') }} {{ $orderItems->sum('total') }}
@endsection @section('script') @endsection