@extends('layouts.tenant.master') @section('title', 'Orders Menu') @section('css') @endsection @section('style') @endsection @section('breadcrumb-title')

OrdersDetails

@endsection @section('breadcrumb-items') @endsection @section('content')

Bill To :

Name :   {{ ucfirst($order->user->name) }}
Address :   {{ $order->user_address }}
Email :   {{ ucfirst($order->user_email) }}
Phone :   {{ $order->user_phone }}

Ship To :

Name : {{ ucfirst($order->user->name) }}
Address : {{ $order->user_address }}
Email : {{ ucfirst($order->user_email) }}
Phone : {{ $order->user_phone }}
ORDER # : {{$order->transaction_id}}

SQ # :


Job Name : {{ $order->job_name }}
@foreach ($rooms as $room) @if (isset($room['products']) && is_array($room['products']) && count($room['products']) > 0) @foreach ($room['products'] as $each) @php // Ensure the product ID exists $productData = \App\Models\Product::with('doorColor')->find($each['product_id'] ?? null); if (!$productData) { continue; // Skip if product not found } // Calculate values $productWeight = $productData->weight ?? 0; $productPrice = $productData->cost ?? 0; $productAssembleCost = $productData->assemble_cost ?? 0; $totalProductWeight = $productWeight * ($each['quantity'] ?? 0); $totalProductPrice = $productPrice * ($each['quantity'] ?? 0); $totalProductAssembleCost = $productAssembleCost * ($each['quantity'] ?? 0); @endphp @php $eachProductCost = $totalProductPrice; @endphp @php $eachAssembleCost = $totalProductAssembleCost; @endphp @endforeach @else @endif @endforeach @if($order->status == 1) s @php $orderTotal = ($order->grand_total_cost ?? 0) + ($order->pallets_cost ?? 0) + ($order->delivery_cost ?? 0) + ($order->liftgate_cost ?? 0) + ($order->unload_cost ?? 0) + ($order->miscellaneous_cost ?? 0); @endphp @endif
Double Check Work Cabinet Name Cabinet Description Weight Unit Price Total Price Quantity Assemble Cost Item Notes
{{ $room['room_name'] }}
@if ($productData->checkbox_status == "yes")    @elseif ($productData->checkbox_status == "pending")    @else    @endif {{ $productData->label }} {{ $productData->sku }} + {{ $productData->doorColor->product_label ?? '' }} {{ $productWeight }} lbs ${{ number_format($productPrice, 2) }}${{ number_format($eachProductCost, 2) }} {{ $each['quantity'] ?? 0 }}${{ number_format($eachAssembleCost, 2) }}

No products found for this room.

Sub Total {{ number_format($order->sub_total_weight ?? 0, 2) }} lbs ${{ number_format($order->sub_total_cost ?? 0, 2) }} ${{ number_format($order->sub_total_assemble_cost ?? 0, 2) }}
Cabinetry Assembly Cost ${{ number_format($order->sub_total_assemble_cost ?? 0, 2) }}
Total (Excluding Sales Tax And Payment Charges) {{ number_format($order->sub_total_weight ?? 0, 2) }} lbs ${{ number_format($order->grand_total_cost ?? 0, 2) }}
Shipping Charges ${{ number_format($order->shipping_cost ?? 0, 2) }}
Pallets Cost(Total Pallets = 1) ${{ number_format($order->pallets_cost ?? 0, 2) }}
Delivery Cost ${{ number_format($order->delivery_cost ?? 0, 2) }}
Liftgate Cost ${{ number_format($order->liftgate_cost ?? 0, 2) }}
Unload Cost(By Hand) ${{ number_format($order->unload_cost ?? 0, 2) }}
Miscellaneous Charge ${{ number_format($order->miscellaneous_cost ?? 0, 2) }}
Order Total ${{ number_format($orderTotal, 2) }}
Comment : {{ $order->comment }}
Payment Method : {{ $order->payment_method }}
@endsection @section('script') @if (session('success')) @elseif(session('error')) @endif {{-- sweet alert end --}} @endsection {{-- sweet alert link start --}} {{-- --}} {{-- sweet alert link end --}}