@extends('layouts.erp_theme_01') @section('content')
{{ csrf_field() }}

Order Summary for {{ $data['order']['cart_no'] }} @switch($data['order']['order_status']) @case("CXL") CANCELLED @default {{ $data['order']['order_status'] }} @endswitch


@if (session('message'))
{{ session('message') }}
@endif
@php $slno=1; $total_item_cost = $total_sgst = $total_cgst = $total_discount = 0.00; $item_cost = $sgst = $cgst = $discount = 0.00; $qty = 0; @endphp @foreach($data['products'] as $order_item) @php $qty = $order_item['qty'] ; $item_cost = $order_item['unit_cost'] * $qty; $sgst = ( $order_item['sgst'] / 100 ) * $item_cost; $cgst =( $order_item['cgst'] / 100 ) * $item_cost; $discount = $order_item['discount'] * $qty; $total_item_cost += $item_cost; $total_sgst += $sgst; $total_cgst += $cgst; $total_discount += $discount; @endphp @endforeach
# Item Unit Cost Qty CGST SGST Discount Amount
{{ $slno++ }} {{ $order_item['product_name'] }} {{ $order_item['unit_cost'] }} {{ $qty }} {{ $sgst }} {{ $cgst }} {{ $discount }} {{ $item_cost + $sgst + $cgst - $discount }}
Total Item Cost: {{ $total_item_cost }}
Total SGST: {{ $total_sgst }}
Total CGST: {{ $total_cgst }}
Item Discount: {{ $total_discount }}
Additional Discount:
Total Amount Payable:
{{ csrf_field() }}
@endsection @section('script') @endsection