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

{{ get_option('school_name') }}

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

{{ $staff->name }}

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

@php // Generate the barcode for each staff $text = $staff->name; // You can use a unique identifier for the staff 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