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

PURCHASE REQUEST DETAILS

Go Back
CODE

{{ $order->order_code }}

ORDER DATE

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

Customer

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

TAX TYPE
@if ($igst)

Interstate(IGST)

@else

Intrastate

@endif
STOCK LOCATION

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

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->remarks != null)
({{ $item->remarks }}) @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