@extends('layouts.master') @section('css') @stop @section('title') {{ __('hr.show_employees') }} @endsection @section('page-header')
@endsection @section('content')
@if (count($errors) > 0)
خطا
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{ __('hr.employees_by_departments') }}
{{ __('hr.employees_by_nationalities') }}
{{ __('hr.total_salaries_and_allowances') }}
{{ __('hr.employee_records_details') }}
@foreach (App\Models\employee::get() as $employee) @endforeach
# {{ __('home.date') }} {{ __('hr.name') }} {{ __('hr.Id') }} {{ __('hr.nationality') ?? 'الجنسية' }} {{ __('hr.email') }} {{ __('hr.phone') }} {{ __('hr.department') }} {{ __('hr.salary') }} {{ __('hr.housing_allowance') ?? 'بدل السكن' }} {{ __('hr.transportation_allowance') ?? 'بدل الانتقال' }} {{ __('hr.other_allowances') ?? 'بدلات أخرى' }} {{ __('hr.age') }} {{ __('hr.sex') }} {{ __('home.operations') }}
{{ $i }} {{ $employee->created_at ? $employee->created_at->format('Y-m-d') : '-' }} {{ __('hr.phone') == 'رقم الجوال' ? $employee->name_ar : ($employee->name_en ?? $employee->name_ar) }} {{ $employee->personal_identification }} {{ $employee->nationality ?? 'غير محدد' }} {{ $employee->email }} {{ $employee->phone }} @if($employee->departments) {{ __('hr.phone') == 'رقم الجوال' ? $employee->departments->name_ar : $employee->departments->name_en }} @else - @endif {{ number_format($employee->salary, 2) }} {{ number_format($employee->housing_allowance ?? 0, 2) }} {{ number_format($employee->transportation_allowance ?? 0, 2) }} {{ number_format($employee->other_allowances ?? 0, 2) }} {{ $employee->old }} {{ $employee->sex == 'male' ? __('hr.male') : __('hr.female') }} تعديل
@endsection @section('js') @endsection