@extends('layouts.app') @section('title', 'Availability Audit Detail') @section('content')
{{ $report->submitted_at ? $report->submitted_at->format('d M, Y h:i A') : 'N/A' }}
{{ $report->submittedBy->name ?? 'System' }}
{{ $report->submittedBy->email ?? '' }}{{ $report->outlet->name ?? 'Unknown Outlet' }}
{{ $report->outlet->address ?? '' }}{{ $report->geo_tag_distance ? number_format($report->geo_tag_distance, 2) . ' meters' : 'N/A' }}
| Product Name | SKU | Availability | Quantity | Condition |
|---|---|---|---|---|
|
{{ $item->product->name ?? 'Unknown Product' }}
{{ $item->product->category ?? '' }}
|
{{ $item->product->code ?? 'N/A' }} | @if($item->status == 'green') Available @elseif($item->status == 'red') Missing @else {{ ucfirst($item->status) }} @endif | {{ $item->quantity ?? 0 }} | @if($item->condition == 'good') @elseif($item->condition == 'damaged') @else - @endif |
No items recorded for this audit.
Lat: {{ $report->visit_latitude ?? 'N/A' }}
Lng: {{ $report->visit_longitude ?? 'N/A' }}