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

Stock CheckDetails

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

Bill To :

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

Ship To :

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

STOCK CKECK DATE # : {{ $stock_check_request->created_at }}

STOCK CKECK REQUSET # : {{ $stock_check_request->id }}

ORDER # : N/A


Job Name : {{ $stock_check_request->job_name }}
@if ($stock_check_request->assemble_cabinets_check == "yes") @endif @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 = (float)$productWeight * (int)($each['quantity'] ?? 0); $totalProductPrice = (float)$productPrice * (int)($each['quantity'] ?? 0); $totalProductAssembleCost = (float)$productAssembleCost; // if quantity isn't involved here @endphp @php $eachProductCost = $totalProductPrice; @endphp @php $eachAssembleCost = $totalProductAssembleCost; @endphp @if ($stock_check_request->assemble_cabinets_check == 'yes') @endif @endforeach @else @endif @endforeach @if ($stock_check_request->assemble_cabinets_check == 'yes') @endif @if ($stock_check_request->assemble_cabinets_check == 'yes') @endif @if ($stock_check_request->assemble_cabinets_check == 'yes') @endif @if ($stock_check_request->delivery_type == 1) @else @endif @if ($stock_check_request->unload_type == 1) @else @endif @php $orderTotal = ($stock_check_request->grand_total_cost ?? 0) + ($stock_check_request->total_pallets * 30 ?? 0) + ($stock_check_request->delivery_cost ?? 0) + ($stock_check_request->liftgate_cost ?? 0) + ($stock_check_request->unload_cost ?? 0) + (($stock_check_request->sub_total_cost * $fuel_charge) / 100 ?? 0) + ($stock_check_request->miscellaneous_cost ?? 0); @endphp
Double Check Work Cabinet Name Cabinet Description Weight Unit Price Total Price QuantityAssemble CostItem 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) }} {{ $each['note'] ?? '' }}

No products found for this room.

Sub Total {{ number_format($stock_check_request->sub_total_weight ?? 0, 2) }} lbs ${{ number_format($stock_check_request->sub_total_cost ?? 0, 2) }} ${{ number_format($stock_check_request->sub_total_assemble_cost ?? 0, 2) }}
Fuel Charges ({{ $fuel_charge }}%) ${{ number_format(($stock_check_request->sub_total_cost * $fuel_charge) / 100 ?? 0, 2) }} ${{ number_format($stock_check_request->sub_total_assemble_cost ?? 0, 2) }}
Cabinetry Assembly Cost ${{ number_format($stock_check_request->sub_total_assemble_cost ?? 0, 2) }}
Shipping Charges ${{ number_format($stock_check_request->shipping_cost ?? 0, 2) }}
Pallets Cost(Total Pallets = {{ $stock_check_request->total_pallets ?? 0 }}) ${{ number_format($stock_check_request->total_pallets * 30 ?? 0, 2) }}
Delivery Cost( commerical ) ${{ number_format($stock_check_request->delivery_cost ?? 0, 2) }}
Delivery Cost( Residential ) ${{ number_format($stock_check_request->delivery_cost ?? 0, 2) }}
Liftgate Cost ${{ number_format($stock_check_request->liftgate_cost ?? 0, 2) }}
Unload Cost(By Hand)Unload Cost(By Forklift) ${{ number_format($stock_check_request->unload_cost ?? 0, 2) }}
Miscellaneous Charge ${{ number_format($stock_check_request->miscellaneous_cost ?? 0, 2) }}
Total (Excluding Sales Tax And Payment Charges) {{ number_format($stock_check_request->sub_total_weight ?? 0, 2) }} lbs ${{ number_format($orderTotal, 2) }}
@csrf @method('PUT')
Comment :

{{ $stock_check_request->comment }}





Total Shipping Charges: ${{ number_format($orderTotal, 2) }}
{{-- --}}
@endsection @section('script') @if (session('success')) @elseif(session('error')) @endif {{-- sweet alert end --}} @endsection