@extends('layouts.dashboard.superadminapp') @section('title', 'View Sales Order') @section('styles') @endsection @section('content')

Sales Order Details

{{ $order->sales_order_no }}

{{ \Carbon\Carbon::parse($order->sales_order_date)->format('d M Y') }}
{{ $order->customer->company ?? 'N/A' }}
₹{{ number_format($order->grand_total, 2) }}
@if($order->status === 'approved') Approved @elseif($order->status === 'rejected') Rejected @else Pending @endif
Reference Numbers
Quotation: {{ $order->quotation->quotation_no ?? 'N/A' }}
GRN No: {{ $order->grn_no ?? 'N/A' }}
Customer Ref: {{ $order->customer_ref_no ?? 'N/A' }}
Company Info
GST No: {{ $order->company_gstn ?? 'N/A' }}
Phone: {{ $order->company_phone ?? 'N/A' }}
Email: {{ $order->company_email ?? 'N/A' }}
RFQ & Product
RFQ No: {{ $order->rfq_no ?? 'N/A' }}
Part No: {{ $order->part_no ?? 'N/A' }}
Product Type: {{ $order->product_type ?? 'N/A' }}
Financial Summary
Sub Total: ₹{{ number_format($order->subtotal, 2) }}
Total Tax: ₹{{ number_format($order->sgst_amount + $order->cgst_amount + $order->igst_amount, 2) }}
Grand Total: ₹{{ number_format($order->grand_total, 2) }}
Address Information
Company Address: {{ $order->company_address ?? 'N/A' }}
Bill To: {{ $order->bill_address ?? 'N/A' }}
Ship To: {{ $order->ship_address ?? 'N/A' }}
Technical Details
Drawing No: {{ $order->drawing_no ?? 'N/A' }}
Drawing Revision: {{ $order->drawing_rev ?? 'N/A' }}
Project/Material No: {{ $order->project_material_no ?? 'N/A' }}
@if($order->description)
Description: {{ $order->description }}
@endif
@if($order->items && $order->items->count() > 0)
Product Items
@foreach($order->items as $index => $item) @endforeach
# Material Code HSN Code Description Qty UOM Unit Rate Disc % Value SGST % CGST % IGST % Amount
{{ $index + 1 }} {{ $item->material_code ?? '-' }} {{ $item->hsn_code ?? '-' }} {{ $item->material_description ?? '-' }} {{ $item->quantity ?? 0 }} {{ $item->uom ?? '-' }} ₹{{ number_format($item->unit_rate ?? 0, 2) }} {{ $item->discount ?? 0 }}% ₹{{ number_format($item->value ?? 0, 2) }} {{ $item->sgst ?? 0 }}% {{ $item->cgst ?? 0 }}% {{ $item->igst ?? 0 }}% ₹{{ number_format($item->amount ?? 0, 2) }}
@endif
Amount in Words
{{ $order->inr_in_words }}
Sub Total: ₹{{ number_format($order->subtotal, 2) }}
SGST Amount: ₹{{ number_format($order->sgst_amount, 2) }}
CGST Amount: ₹{{ number_format($order->cgst_amount, 2) }}
IGST Amount: ₹{{ number_format($order->igst_amount, 2) }}
Round Up: ₹{{ number_format($order->round_up, 2) }}
Grand Total: ₹{{ number_format($order->grand_total, 2) }}
Print Edit Back to List
@endsection