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