@extends('layouts.admin') @section('title', 'Store Approval Center') @section('header', 'Store Approval Center') @section('content')
@forelse($requests as $item) @empty @endforelse
Store Current Lat/Lng Requested Lat/Lng FSSAI License Status Requested Action
{{ $item->restaurant->name ?? 'Store removed' }}
{{ $item->requester->email ?? '' }}
{{ $item->current_latitude ?? '-' }}, {{ $item->current_longitude ?? '-' }} {{ $item->requested_latitude }}, {{ $item->requested_longitude }} @php $fssaiPath = $item->fssai_license_path ? preg_replace('#^public/#', '', $item->fssai_license_path) : null; $fssaiExists = $fssaiPath && \Illuminate\Support\Facades\Storage::disk('public')->exists($fssaiPath); @endphp @if($fssaiExists) View @else Not available @endif {{ ucfirst($item->status) }} @if($item->admin_notes)
{{ $item->admin_notes }}
@endif
{{ $item->created_at->format('d M Y') }}
{{ $item->created_at->format('h:i A') }}
@if($item->status === 'pending')
@csrf
@csrf
@else Reviewed by {{ $item->reviewer->name ?? 'Admin' }} @if($item->reviewed_at) on {{ $item->reviewed_at->format('d M Y') }} @endif @endif
No store approval requests found.
{{ $requests->withQueryString()->links() }}
@endsection