@extends('layouts.mop_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 }}

TAX TYPE
@if ($igst)

Interstate(IGST)

@else

Intrastate

@endif
PRICE SLAB

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

STOCK LOCATION

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

Production Date

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

Deliverey Date

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

REMARKS

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

ITEMS

@php $totalTaxableValue = 0; @endphp @foreach ($orderItems as $item) @endforeach
Item MRP Qty Unit Price Price (Inc GST) Gross Value Dis % Taxable Value CGST SGST IGST CESS Total
{{ $item->stockItem->name }}@if ($item->variant_id != null)
({{ $item->variant->name }}) @endif @if ($item->remarks != null)
Remarks : {{ $item->remarks }} @endif @if ($item->getFirstMedia('image') != null) @endif
{{ $item->stockItem->mrp }} {{ $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 }}
Total {{ round($totalTaxableValue, 2) }} {{ $orderItems->sum('cgst') }} {{ $orderItems->sum('sgst') }} {{ $orderItems->sum('total') }}
@endsection @section('script') @endsection