@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

Installer:{{$response['order_details']->installer ?? ''}}
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 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->price*$row->quantity}}
  • Gross Total

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

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

    ₹ {{ $response['order_details']->forwarding_gst}}
  • @endif @if($response['order_details']->discount > 1)
  • Coupon Discount

    ₹{{ $response['order_details']->discount}}
  • @endif @if($response['order_details']->customer_discount_amount > 1)
  • Special Discount

    ₹ {{ $response['order_details']->customer_discount_amount}}
  • @endif
  • 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') {{-- Assign Installer --}} @php $isInstallerAssigned = in_array($orderStatus, ['Measurement', 'Cutting Done', 'Payment Done', 'Packed', 'Shipped', 'Delivered']); @endphp {{-- Cut The Material --}} @php $isCuttingDone = in_array($orderStatus, ['Cutting Done', 'Payment Done', 'Packed', 'Shipped', 'Delivered', 'Cancelled']); @endphp @if(!empty($response['order_details']->bill_generate == 0)) Generate Invoice @else View Tax Invoice @endif {{-- Receive Payment --}} @php $buttonLabel = 'Receive Payment'; $buttonClass = 'btn btn-primary 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-success btn-md'; } @endphp {{-- Generate Receipt --}} @if(in_array($paymentStatus, ['Partially Paid', 'Paid'])) Generate Receipt {{-- Packed --}} {{-- Shipped --}} {{-- Delivered --}} @endif {{-- Cancel Order --}} @if(in_array($orderStatus, ['Ordered', 'Measurement', 'Cutting Done', 'Payment Done', 'Packed'])) @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
{{-- Message Container --}}
Payment Summary

@forelse($response['payment_summary'] as $payment) @empty @endforelse
Receipt No Total Amount Paid Amount Balance Transaction Date Payment Method
{{ $payment->receipt_id }} ₹ {{ number_format($payment->amount_paid, 2) }} ₹ {{ number_format($payment->pay_amount, 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')