@if (isset($settings['staff_profile_image_style']) && $settings['staff_profile_image_style'] == 'squre') @else @endif @if (isset($settings['staff_layout_type']) && $settings['staff_layout_type'] == 'horizontal') @else @endif @foreach ($users as $key => $user)
@if ($settings['staff_layout_type'] == 'horizontal') @if (in_array('name',$settings['staff_id_card_fields'])) @endif @if (in_array('role',$settings['staff_id_card_fields'])) @endif @if (in_array('contact',$settings['staff_id_card_fields'])) @endif @if (in_array('email',$settings['staff_id_card_fields'])) @endif @if (in_array('qualification',$settings['staff_id_card_fields'])) @endif @if (in_array('dob',$settings['staff_id_card_fields'])) @endif @if (in_array('gender',$settings['staff_id_card_fields'])) @endif @if (in_array('session_year',$settings['staff_id_card_fields'])) @endif
{{ $settings['school_name'] }}
Staff Identification Card
@if ($user->getRawOriginal('image')) @else @endif Name : {{ $user->full_name }}
Role : {{ implode(',',$user->roles->pluck('name')->toArray()) }}
Contact : {{ $user->mobile }}
Email : {{ $user->email }}
Qualification : {{ $user->staff->qualification }}
DOB : {{ date($settings['date_format'],strtotime($user->dob)) }}
Gender : {{ $user->gender }}
Session Year : {{ $sessionYear->name }}
@if ($settings['signature'] ?? '') Signature @endif
@else {{-- Vertical --}} @if (in_array('name',$settings['staff_id_card_fields'])) @endif @if (in_array('role',$settings['staff_id_card_fields'])) @endif @if (in_array('contact',$settings['staff_id_card_fields'])) @endif @if (in_array('email',$settings['staff_id_card_fields'])) @endif @if (in_array('qualification',$settings['staff_id_card_fields'])) @endif @if (in_array('dob',$settings['staff_id_card_fields'])) @endif @if (in_array('gender',$settings['staff_id_card_fields'])) @endif @if (in_array('session_year',$settings['staff_id_card_fields'])) @endif
{{ $settings['school_name'] }}
@if ($settings['horizontal_logo'] ?? '') @else @endif
Staff Identification Card
@if ($user->getRawOriginal('image')) @else @endif
Name : {{ $user->full_name }}
Role : {{ implode(',',$user->roles->pluck('name')->toArray()) }}
Contact : {{ $user->mobile }}
Email : {{ $user->email }}
Qualification : {{ $user->staff->qualification }}
DOB : {{ date($settings['date_format'],strtotime($user->dob)) }}
Gender : {{ $user->gender }}
Session Year : {{ $sessionYear->name }}
@if ($settings['signature'] ?? '') Signature @endif
@endif @if (isset($settings['staff_layout_type']) && $settings['staff_layout_type'] == 'horizontal')
@if ($settings['staff_background_image'] ?? '') @endif
@else
@if ($settings['staff_background_image'] ?? '') @endif
@endif
@endforeach