@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->cust_ref_so_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->total_amount, 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_revision ?? 'N/A' }}
Project/Material No: {{ $order->project_material_no ?? 'N/A' }}
@if($order->project_description)
Description: {{ $order->project_description }}
@endif
@php $products = is_array($order->table_products) ? $order->table_products : json_decode($order->table_products, true) ?? []; @endphp @if(count($products) > 0)
Product Items
@foreach($products as $index => $product) @endforeach
# Material Code HSN Code Description Qty UOM Unit Rate Disc % Value SGST % CGST % IGST % Amount
{{ $index + 1 }} {{ $product['materialCode'] ?? '-' }} {{ $product['hsnCode'] ?? '-' }} {{ $product['description'] ?? '-' }} {{ $product['quantity'] ?? '0' }} {{ $product['uom'] ?? '-' }} ₹{{ number_format($product['unitRate'] ?? 0, 2) }} {{ $product['discount'] ?? '0' }}% ₹{{ number_format($product['value'] ?? 0, 2) }} {{ $product['sgst'] ?? '0' }}% {{ $product['cgst'] ?? '0' }}% {{ $product['igst'] ?? '0' }}% ₹{{ number_format($product['amount'] ?? 0, 2) }}
@endif
Amount in Words
{{ $order->gt_in_letters }}
Sub Total: ₹{{ number_format($order->total_amount, 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