@extends('layouts.master') @section('page_title', 'ID Cards') @section('content')
Generate ID Cards
{!! Qs::getPanelOptions() !!}
@if ($errors->any())
@foreach ($errors->all() as $e)
{{ $e }}
@endforeach
@endif
@if($type == 'student')
@else
@endif
@if(!is_null($people))
@if($people->isEmpty())

No {{ $type == 'student' ? 'students' : 'staff' }} found.

@else
@csrf
@foreach($people as $p) @php $uid = $type == 'student' ? $p->user_id : $p->id; @endphp @endforeach
PhotoName{{ $type == 'student' ? 'ADM No' : 'Staff ID' }}{{ $type == 'student' ? 'Class' : 'Type' }}
{{ $type == 'student' ? $p->user->name : $p->name }} {{ $type == 'student' ? $p->adm_no : $p->card_code }} {{ $type == 'student' ? trim(optional($p->my_class)->name.' '.optional($p->section)->name) : ucwords(str_replace('_', ' ', $p->user_type)) }}

Opens a print-ready page (9 cards per A4 sheet, fronts then backs). Use your browser's Print button, with "Background graphics" switched on.

@endif
@endif @endsection