@extends('layouts.order-master') @section('css') @endsection @section('title') Order @endsection @section('content')
{{ $order->order_code }}
{{ \Carbon\Carbon::parse($order->order_date)->format('d M Y') }}
{{ $order->debitLedger?->name }}
{{ $order->debitLedger?->address ?? '--' }}
{{ $order->priceSlab->name ?? '--' }}
{{ $order->stockLocation->name ?? '--' }}
Interstate(IGST)
@elseIntrastate
@endif{{ $order->remarks ?? '--' }}
{{ $order->shipping_address ?? '--' }}
| Item | MRP | Qty | Unit | Price | Price (Inc GST) | Gross Value | Dis % | Taxable Value | CGST | SGST | IGST | CESS | Total | @if(Auth::user()->hasFeature('PURCHASE_ORDER_FROM_ORDER'))PO Status | @endif
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $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 }} | @if(Auth::user()->hasFeature('PURCHASE_ORDER_FROM_ORDER'))
@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 |
@endif
| Total | {{ round($totalTaxableValue, 2) }} | {{ $orderItems->sum('cgst') }} | {{ $orderItems->sum('sgst') }} | {{ $orderItems->sum('total') }} | ||||||||||