@extends('layouts.app') @section('title', 'QR Codes Management') @section('content')
@if(session('success'))

{{ session('success') }}

@endif @if(session('error'))

{{ session('error') }}

@endif
QR Codes Management
Generate QR Code
@if($qrCodes->isEmpty())

No QR codes found

Start by creating a new QR code for your checkpoints

@else
@foreach($qrCodes as $qrCode) @endforeach
QR Code Checkpoint Sites Status Actions
{{ $qrCode->code }} {{ $qrCode->checkpoint?->checkpoint_name ?? 'N/A' }} @if($qrCode->checkpoint) @if($qrCode->checkpoint->service) {{ $qrCode->checkpoint->service->service_name }} @elseif($qrCode->checkpoint->schedules?->first()?->service) {{ $qrCode->checkpoint->schedules->first()->service->service_name }} @else No Site assigned @endif @else No checkpoint @endif @if($qrCode->is_active) Active @else Inactive @endif
View
@csrf @method('DELETE')
@endif
@endsection