@include('layouts.header') @include('layouts.sidebar')

@if(session()->has('success'))
{{ session()->get('success') }}
@endif @if(session()->has('error'))
{{ session()->get('error') }}
@endif
Shipping Info

{{ $response['order_details']->customer_name }}
@if($response['order_details']->order_type == 'Pickup') Pickup Point:{{ $response['pickup_point']->warehouse_name ?? '' }}
Address:{{ $response['pickup_point']->address ?? '' }} @else {{ $response['order_details']->email }}
{{ $response['order_details']->phone1 }} @if(!empty($response['order_details']->phone2)) |{{ $response['order_details']->phone2 }} @endif
{{ $response['order_details']->address }} @endif

Company Info

Kukreja Interiors
kukreja_interiors@yahoo.com
9665065522 /25 /34
A-45, R Quarters, Near Sai Chowk, Pimpri Pune 411017

Member Info

@if($response['order_details']->installer) Installer: {{$response['order_details']->installer ?? ''}}
@endif Transporter:{{$response['order_details']->transporter_name}}
Staff:{{$response['order_details']->staff}}

Invoice Info

Order No: {{ $response['order_details']->order_code}}
Order Date:{{ date('d M Y', strtotime($response['order_details']->order_date))}}
Payment Status: payment_status == 'Pending' || $response['order_details']->payment_status == 'Partially Paid') style="cursor: pointer;" @endif> {{ $response['order_details']->payment_status }}
Order Status: {{ $response['order_details']->status}}
@if(!empty($response['order_details']->bill_no)) Bill No: {{ $response['order_details']->bill_no }}
@endif


Transporter Info

{{ $response['transporter_data']->contact_person ?? ''}}
{{ $response['transporter_data']->email ?? ''}}
{{ $response['transporter_data']->phone1 ?? ''}}@if(!empty($response['transporter_data']->phone2)) |{{ $response['transporter_data']->phone2 }} @endif
{{ $response['transporter_data']->address ?? ''}}

Delivery Info

Date & Time:{{ date('d M Y H:i:s', strtotime($response['order_details']->updated_at)) }}
Payment Method:Cash On Delivery


Order Summary
@php $i=1; @endphp @foreach($response['order_items'] as $row ) @endforeach
Sr.No Product Name Variant Name Warehouse Roll No Cutting Done Quantity Price Labour Discount(%) Total
{{ $i++}} {{ $row->product_name}} {{ $row->varient_code}}-{{ $row->varient_name}} {{ $row->warehouse_name}} {{ $row->roll_no}} {{ $row->installer_status == 'Cutting Done' ? 'Yes' : 'No' }} {{ $row->quantity}} ₹ {{ round($row->price,2)}} ₹ {{ $row->labour_rate ?? 0}} {{ $row->item_discount ?? 0}}% ₹ {{ $row->total}}
  • Item Total

    ₹ {{ $response['order_details']->order_amount }}
  • Discount Total

    ₹ {{ $response['order_details']->discount }}
  • Sub Total

    ₹ {{ $response['order_details']->subtotal}}
  • @if($response['order_details']->forwarding_amount > 1)
  • Forwarding

    ₹ {{ $response['order_details']->forwarding_amount}}
  • @endif
  • Labour Charges

    ₹ {{ $response['order_details']->labour_charges}}
  • GST (Item+Labour+Forwarding)

    ₹ {{ $response['order_details']->subtotal_ex_gst }}
  • Grand Total

    ₹ {{ $response['order_details']->grandtotal }}


@if($response['order_details']->refund_status == 0 && $response['order_details']->status === 'Cancelled' && $response['order_details']->refund_status != 1 && in_array($response['order_details']->payment_status, ['Paid', 'Partially Paid'])) Refund @endif
@php $orderStatus = $response['order_details']->status; $paymentStatus = $response['order_details']->payment_status; $refundStatus = $response['order_details']->refund_status; $orderId = $response['order_details']->order_id; $orderCode = $response['order_details']->order_code; @endphp {{-- ✅ Only show buttons if not Cancelled --}} @if($orderStatus !== 'Cancelled') {{-- Receive Payment --}} @php $buttonLabel = 'Receive Payment'; $buttonClass = 'btn btn-success btn-md'; if ($paymentStatus === 'Partially Paid') { $buttonLabel = 'Partial Payment Done'; $buttonClass = 'btn btn-info btn-md'; } elseif ($paymentStatus === 'Paid') { $buttonLabel = 'Payment Done'; $buttonClass = 'btn btn-danger btn-md'; } if($orderStatus == 'Closed Order') $disabled = 'disabled'; @endphp @if(getUserType() == 1 || getUserType() == 3) @endif {{-- Cut The Material --}} @php $isCuttingDone = in_array($orderStatus, ['Closed Order','Cutting Done', 'Payment Done','Goods Return','Partially Refund','Full Refund']); @endphp @if(getUserType() == 1 || getUserType() == 6) @endif {{-- Generate Receipt --}} @if(in_array($paymentStatus, ['Partially Paid', 'Paid','Pending'])) {{-- Packed --}} @if(getUserType() == 1 || getUserType() == 6) @endif {{-- Shipped --}} @if(getUserType() == 1 || getUserType() == 6) @endif {{-- Delivered --}} @if(getUserType() == 1 || getUserType() == 6) @endif @endif @if(!empty($response['order_details']->bill_generate == 0)) @if(getUserType() == 1 || getUserType() == 3) Generate Invoice @endif @else @if(getUserType() == 1 || getUserType() == 3) View Tax Invoice @endif @endif @if(getUserType() == 1 || getUserType() == 3) @if($response['order_details']->payment_status != 'Pending' ) Generate Receipt @endif @endif {{-- Cancel Order --}} @if(in_array($orderStatus, ['Ordered', 'Measurement', 'Cutting Done', 'Payment Done', 'Packed'])) @if(getUserType() == 1 || getUserType() == 3) @endif @endif @endif {{-- If Cancelled --}} @if($orderStatus === 'Cancelled' && $refundStatus != 1) @endif {{-- Refund --}} @if($orderStatus === 'Cancelled' && $refundStatus == 0 && in_array($paymentStatus, ['Paid', 'Partially Paid'])) @elseif($refundStatus == 1) @endif @if(getUserType() == 1) @if($orderStatus === 'Delivered' && empty($refundDetails)) Goods Return @endif @endif @if(getUserType() == 1) @php if($orderStatus == 'Goods Return'){ $refundClass = 'btn-success'; $refundDisable = ''; } if($orderStatus == 'Partially Refund'){ $refundClass = 'btn-info'; $refundDisable = ''; } if($orderStatus == 'Full Refund'){ $refundClass = 'btn-danger'; $refundDisable = 'disabled'; } @endphp @if($orderStatus === 'Goods Return' || $orderStatus == "Partially Refund" || $orderStatus === 'Full Refund') @endif @endif @if(getUserType() == 1) @if($orderStatus === 'Full Refund' || $orderStatus == "Partially Refund" || $orderStatus === 'Goods Return') Generate Refund Receipt @endif @endif @if(getUserType() == 1) @if($orderStatus === 'Delivered' || $orderStatus === 'Goods Return' || $orderStatus == "Partially Refund" || $orderStatus === 'Full Refund') @endif @endif @if(getUserType() == 1) @if($orderStatus === 'Closed Order') @endif @endif
{{-- Message Container --}}
@if($orderStatus == 'Partially Refund' || $orderStatus == 'Full Refund' || $orderStatus == 'Goods Return')
Refund Item Details

@php $allTotal = 0; @endphp @foreach($response['returnItems'] as $items) @php $itemTotal = $items->total; $allTotal += $itemTotal; if($items->item_discount > 0){ $discount = $itemTotal * $items->item_discount/100; $itemTotal -=$discount; } @endphp @endforeach
Product Name Variant Name Warehouse Roll No Return Quantity Unit Price Labour Discount(%) Total
{{ $items->product_name }} {{ $items->variant_name }} {{ $items->warehouse }} {{ $items->roll_no }} {{ $items->returned_qty }} {{ $items->price }} {{ $items->labour_rate }} {{ $items->item_discount }} {{ $itemTotal }}
  • Refund Item Total

    ₹ {{ $allTotal ?? 0 }}
  • Refund Discount Total

    ₹ {{ $response['refund_totals']->discount_amount ?? 0}}
  • Refund Sub Total

    ₹ {{ $response['refund_totals']->refund_subtotal}}
  • Refund Forwarding

    ₹ {{ $response['refund_totals']->forwarding_amount}}
  • Refund Labour Charges

    ₹ {{ $response['refund_totals']->labour_charges}}
  • Refund GST (Item+Labour+Forwarding)

    ₹ {{ $response['refund_totals']->gst_amount }}
  • Refund Grand Total

    ₹ {{ $response['refund_totals']->total_return_amount }}
@endif @if($orderStatus == 'Partially Refund' || $orderStatus == 'Full Refund' || $orderStatus == 'Goods Return')
Refund Payment Details

@forelse($response['refundDetails'] as $refund) @empty @endforelse
Refund Txn No Calculated Refund Amount Refunded Remaining Refund Balance Refund Date Payment Method
{{ $refund->refund_reference_no }} ₹ {{ number_format($refund->refund_amount + $refund->remaining_refund_amount, 2) }} ₹ {{ number_format($refund->refund_amount, 2) }} ₹ {{ number_format($refund->remaining_refund_amount, 2) }} {{ date('d-M-Y', strtotime($refund->refund_date)) }} {{ $refund->refund_mode }} @php $mode = trim($refund->refund_mode); @endphp @if($mode === 'Cheque') @if(!empty($refund->cheque_number))
Cheque No: {{ $refund->cheque_number }} @endif @elseif($mode === 'Bank Transfer') @if(!empty($refund->bank_name))
Bank Name: {{ $refund->bank_name }} @endif @if(!empty($refund->account_number))
Account No: {{ $refund->account_number }} @endif @if(!empty($refund->ifsc_code))
IFSC: {{ $refund->ifsc_code }} @endif @elseif($mode === 'Online') @if(!empty($refund->reference_id))
Transaction ID: {{ $refund->reference_id }} @endif @endif
No refund payment summary found
@endif
Payment Summary

@forelse($response['payment_summary'] as $key => $payment) @php if($key == 0) $totalAMount = $payment->order_amount; else $totalAMount = $payment->pay_amount + $payment->remaining_amount; @endphp @empty @endforelse
Receipt No Total Amount Paid Amount Refunded Amount Balance Transaction Date Payment Method
{{ $payment->receipt_id }} ₹ {{ number_format($totalAMount, 2) }} ₹ {{ number_format($payment->pay_amount, 2) }} - ₹ {{ number_format($payment->refund_amount ?? 0, 2) }} ₹ {{ number_format($payment->remaining_amount, 2) }} {{ date('d-M-Y', strtotime($payment->transaction_date)) }} {{ $payment->payment_mode }} @php $mode = trim($payment->payment_mode); @endphp @if($mode === 'Cheque') @if(!empty($payment->cheque_number))
Cheque No: {{ $payment->cheque_number }} @endif @elseif($mode === 'Bank Transfer') @if(!empty($payment->bank_name))
Bank Name: {{ $payment->bank_name }} @endif @if(!empty($payment->account_number))
Account No: {{ $payment->account_number }} @endif @if(!empty($payment->ifsc_code))
IFSC: {{ $payment->ifsc_code }} @endif @elseif($mode === 'Online') @if(!empty($payment->reference_id))
Transaction ID: {{ $payment->reference_id }} @endif @endif
No payment summary found

@include('layouts.footer')