@extends('layouts.pdf') @section('title') {{ $extra['module_name'] }} @endsection @section('content') @php $employee_id = $employee->id; $branch_id = $employee->branch_id; $template_id = $branch_id ? App\Helpers\CommonHelper::getBranchSettings($branch_id, 'id_card_template_id') : 1; $voucher_attachment = \App\Models\VoucherAttachmentDetail::where(['reference_id' => $employee_id]); $transaction = new \App\Models\Transaction(); @endphp @if ($template_id == 1) @include('admin.employee.id-card-pdf.template_1.index') @elseif ($template_id == 2) @include('admin.employee.id-card-pdf.template_2.index') @elseif ($template_id == 3) @include('admin.employee.id-card-pdf.template_3.index') @else @include('admin.employee.id-card-pdf.template_1.index') @endif @stop