@extends('layout.app') @section('title', __('employees')) @section('content')
@can('employee.create') {{ __('add_employee') }} @endcan
@foreach ($staffs as $staff) @endforeach
{{ __('sl') }} {{ __('name') }} {{ __('email') }} {{ __('phone_number') }} {{ __('role') }} {{ __('department') }} {{ __('country') }} {{ __('city') }} {{ __('address') }} {{ __('staff_id') }} {{ __('action') }}
{{ $loop->iteration }} {{ $staff->user->name ?? 'N/A' }} {{ $staff->user->email ?? 'N/A' }} {{ $staff->user->phone ?? 'N/A' }} {{ ucfirst($staff->user->roles[0]->name ?? 'N/A') }} {{ $staff->department->name ?? 'N/A' }} {{ $staff->country ?? 'N/A' }} {{ $staff->city ?? 'N/A' }} {{ $staff->address ?? 'N/A' }} {{ $staff->staff_id ?? 'N/A' }}
@endsection