@if(!empty($setting['logo']) && file_exists(public_path('images/'.$setting['logo']))) Logo @endif
INVENTORY ADJUSTMENT
{{$adjustment['Ref']}}
Date: @php $dateFormat = $setting['date_format'] ?? 'YYYY-MM-DD'; $dateTime = \Carbon\Carbon::parse($adjustment['date']); $phpDateFormat = str_replace(['YYYY', 'MM', 'DD'], ['Y', 'm', 'd'], $dateFormat); // Check if original date string contains time $hasTime = strpos($adjustment['date'], ' ') !== false && preg_match('/\d{1,2}:\d{2}/', $adjustment['date']); if ($hasTime) { $formattedDate = $dateTime->format($phpDateFormat . ' H:i'); // Preserve seconds if they exist if (preg_match('/:\d{2}:\d{2}/', $adjustment['date'])) { $formattedDate = $dateTime->format($phpDateFormat . ' H:i:s'); } } else { $formattedDate = $dateTime->format($phpDateFormat); } @endphp {{$formattedDate}}
Adjustment #: {{$adjustment['Ref']}}
Warehouse: {{$adjustment['warehouse_name']}}
@php $rowIndex = 0; $totalQty = 0; @endphp @foreach ($details as $detail) @php $rowIndex++; $totalQty += (int)$detail['quantity']; @endphp @endforeach
PRODUCT QUANTITY
{{$detail['name']}}
Code: {{$detail['code']}}
{{$detail['quantity']}} {{$detail['unit']}}
Total Items: {{$rowIndex}}
@if($setting['is_invoice_footer'] && $setting['invoice_footer'] !==null)

{{$setting['invoice_footer']}}

@endif

Inventory Adjustment Completed