@if (!empty($message))
@php
$message = json_decode($message);
@endphp
| # |
Full Name |
Email |
Contact |
Address |
Company |
Action |
@php
$start = $employees->firstItem();
@endphp
@forelse ($employees as $employee)
| {{ $start + $loop->index }} |
{{ $employee->name }} |
{{ $employee->email }} |
{{ $employee->phone }} |
{{ $employee->address }} |
{{ $employee->company->name ?? '' }} |
@if (auth()->user()->role->name == 'staff' || auth()->user()->role->name == 'companyStaff')
@if (auth()->user()->is_edit == 1)
@else
@endif
@if (auth()->user()->is_delete == 1)
@else
@endif
@else
|
|
@endif
@empty
| No Data! |
@endforelse
Showing {{ $employees->firstItem() }} to {{ $employees->lastItem() }} of
{{ $employees->total() }}
results
{{ $employees->links() }}
@if (auth()->user()->role->name == 'staff' || auth()->user()->role->name == 'companyStaff')
@if (auth()->user()->is_add == 1)
@livewire('dashboard.employee.add')
@else
@endif
@if (auth()->user()->is_edit == 1)
@livewire('dashboard.employee.update')
@else
@endif
@else
@livewire('dashboard.employee.add')
@livewire('dashboard.employee.update')
@endif