@php use Carbon\Carbon; @endphp @extends('layouts.pdf.index') {{-- @section('content-download') --}}
{{-- @endsection --}} @section('content')
@foreach ($teachers as $key => $teacher)

{{ get_option('school_name') }}

{{ _lang('Teacher ID Card') }}

{{ $teacher->name }}

{{ _lang('Des') }} : {{ $teacher->designation }}

@php // Generate the barcode for each teacher $text = $teacher->name; // You can use a unique identifier for the teacher here $barcode = new Picqer\Barcode\BarcodeGeneratorPNG(); $barcodeImage = $barcode->getBarcode($text, $barcode::TYPE_CODE_128); @endphp

{{ $text }}

@if ($principalSignature) @endif

Principal

@if ($key != 0 && ($key + 1) % 9 == 0)
@endif @endforeach
@endsection @section('scripts') @endsection