@php use App\Helpers\StudentHelper; use Illuminate\Support\Facades\DB; $batchId = StudentHelper::batch(); $batchName = StudentHelper::batchName(); if ($batchName === 'Unknown Batch' && $batchId) { $batch = DB::table('batches')->where('id', $batchId)->first(); $batchName = $batch->batch ?? 'Unknown Batch'; } $logoPath = StudentHelper::collegeLogo(); $ctitle = StudentHelper::collegeCtitle(); $ptitle = StudentHelper::collegePtitle(); @endphp