@extends('layouts.admin') @section('title', 'Certificate Generation Logs') @push('styles') @endpush @section('content')

Certificate Generation Logs

Audit trail of all certificate batch generations
Generate New Batch
@if($logs->isEmpty())

No certificate generations yet

Generate First Batch
@else
@foreach($logs as $log) @endforeach
Batch ID Admin File Records Success Skipped Manual Pay Generated Status Actions
#{{ $log->id }}
{{ substr($log->admin->name ?? 'Admin', 0, 1) }}
{{ $log->admin->name ?? 'Unknown' }}
{{ $log->admin->email ?? '' }}
{{ Str::limit($log->filename, 30) }}
{{ $log->sheet_name }}
{{ $log->total_rows }} {{ $log->successful }} @if($log->skipped > 0) {{ $log->skipped }} @else 0 @endif @if($log->manual_payment > 0) {{ $log->manual_payment }} @else 0 @endif {{ $log->created_at->format('M d, Y') }}
{{ $log->created_at->format('h:i A') }}
@if($log->isExpired()) Expired @elseif($log->downloaded) Downloaded @else Available @endif
@if(!$log->isExpired() && \Illuminate\Support\Facades\Storage::exists($log->zip_path)) @endif
{{ $logs->links() }}
@endif
@push('scripts') @endpush @endsection