@push('header') @endpush
@if(isset($financials) && $selectedVehicleId)

Settlement Summary

Total Sale (Stock): {{ number_format($financials['total_sales_amount'] ?? 0, 2) }}
Settlement Sales: {{ number_format($financials['settlement_sales_amount'] ?? 0, 2) }}
Less: Expenses - {{ number_format($financials['expenses'] ?? 0, 2) }}
Add: Recoveries + {{ number_format($financials['recovery'] ?? 0, 2) }}

Collections

Cash: {{ number_format($financials['cash'] ?? 0, 2) }}
Bank Transfer: {{ number_format($financials['bank'] ?? 0, 2) }}
Cheques: {{ number_format($financials['cheque'] ?? 0, 2) }}
Total Collected: {{ number_format(($financials['cash'] ?? 0) + ($financials['bank'] ?? 0) + ($financials['cheque'] ?? 0), 2) }}
@endif

Moon Traders
Salesman Stock Register
Date: {{ \Carbon\Carbon::parse($date)->format('d M, Y') }}
Salesman: {{ $selectedSalesmanId ? ($salesmen->find($selectedSalesmanId)->name ?? 'All') : 'All' }} | Vehicle: {{ $selectedVehicleId ? ($vehicles->find($selectedVehicleId)->vehicle_number ?? 'All') : 'All' }} @if($selectedSupplierId)
Supplier: {{ $suppliers->find($selectedSupplierId)->supplier_name ?? '' }} @endif @if($selectedCategoryId) | Category: {{ $categories->find($selectedCategoryId)->name ?? '' }} @endif @if($selectedProductId)
Product: {{ $allProducts->find($selectedProductId)->product_name ?? '' }} @endif

Printed by: {{ auth()->user()->name }} | {{ now()->format('d-M-Y h:i A') }}

@php $totalAmount = 0; $totalSaleQty = 0; $totalLoad = 0; $totalReturn = 0; $bgColors = ['bg-white', 'bg-gray-50']; @endphp @forelse ($reportData as $row) @php $totalAmount += $row->amount; $totalSaleQty += $row->sale; $totalLoad += $row->load; $totalReturn += $row->return; // Calculate Closing (B/F Out) // Formula: B/F In + Issue - Sale - Return - Short $bfOut = $row->bf + $row->load - $row->sale - $row->return - $row->short; @endphp @empty @endforelse
# SKU Brand TP B/F In Issue Total Return Short Sale Amount B/F Out
{{ $loop->iteration }} {{ $row->sku }} {{ $row->category }} {{ number_format($row->tp, 2) }} {{ number_format($row->bf, 0) }} {{ number_format($row->load, 0) }} {{ number_format($row->total, 0) }} {{ number_format($row->return, 0) }} {{ number_format($row->short, 0) }} {{ number_format($row->sale, 0) }} {{ number_format($row->amount, 2) }} {{ number_format($bfOut, 0) }}
No stock data found for the selected criteria.
Grand Total: - {{ number_format($totalLoad, 0) }} - {{ number_format($totalReturn, 0) }} - {{ number_format($totalSaleQty, 0) }} {{ number_format($totalAmount, 2) }} -
@push('scripts') @endpush