@extends('backend.layout.main') @section('content') @if($errors->has('name'))
{{ $errors->first('name') }}
@endif @if($errors->has('image'))
{{ $errors->first('image') }}
@endif @if($errors->has('email'))
{{ $errors->first('email') }}
@endif @if(session()->has('message'))
{!! session()->get('message') !!}
@endif @if(session()->has('not_permitted'))
{{ session()->get('not_permitted') }}
@endif
@if(in_array("employees-add", $all_permission))
{{trans('file.Add Employee')}}
@endif
@foreach($lims_employee_all as $key=>$employee) @php $department = \App\Models\Department::find($employee->department_id); @endphp @if($employee->image) @else @endif @endforeach
{{trans('file.Image')}} {{trans('file.name')}} {{trans('file.Email')}} {{trans('file.Phone Number')}} {{trans('file.Department')}} {{trans('file.Address')}} {{trans('file.Staff Id')}} {{trans('file.action')}}
{{$key}} No Image{{ $employee->name }} {{ $employee->email}} {{ $employee->phone_number}} {{ $department->name }} {{ $employee->address}} @if($employee->city){{ ', '.$employee->city}}@endif @if($employee->state){{ ', '.$employee->state}}@endif @if($employee->postal_code){{ ', '.$employee->postal_code}}@endif @if($employee->country){{ ', '.$employee->country}}@endif {{ $employee->staff_id }}
@endsection @push('scripts')