@extends("layouts.admin.app") @section("page-title") {{__("Dashboard")}} @endSection @section("page-nav-title")

{{__("employees")}}

{{__("all-employees")}}

@endsection @section("content") @include("includes.dialog")
@if(isPermissionsAllowed("view-employees")) @endif
@csrf {{__("Export As Excel")}}
@if(isPermissionsAllowed("edit-employee","delete-employee")) @endif @foreach($employees as $employee) {{-- --}} @if(isPermissionsAllowed("edit-employee","delete-employee")) @endif @endforeach
# {{__("Full Name")}} {{__("Username")}} {{__("first-password")}} {{__("Email")}} {{__("Role")}} {{__("email-verified")}} {{__("Created at")}}{{__("Control")}}
{{$serial_number++}} {{$employee->full_name}} {{$employee->username}} {{$employee->first_password}} {{$employee->email}} @if(app()->getLocale() == 'ar') {{$employee->role->name_ar}} @else {{$employee->role->name_en}}@endif @if(!empty($employee->email_verified_at)) {{__('activated')}} @else {{__('not-activated')}} @endif @if(!is_null($employee->email_verified_at)) {{__("activated")}}@else {{__("not-activated")}}@endif{{$employee->created_at->diffForHumans()}} @if(isPermissionsAllowed("edit-employee")) id)}}" class="control-link edit"> @endif @if(isPermissionsAllowed("delete-employee"))
id)}}" method="post" id="delete{{$employee->id}}" style="display: none" data-swal-title="{{__("delete-employee")}}" data-swal-text="{{__("are-you-sure-to-delete-this-employee?")}}" data-yes="{{__("yes")}}" data-no="{{__("no")}}" data-success-msg="{{__("the-employee-has-been-deleted-successfully")}}">@csrf @method("delete")
@endif
@endsection