@push('styles') @endpush
@if (auth()->user()->role->name == 'staff' || auth()->user()->role->name == 'companyStaff') @if (auth()->user()->is_add == 1) @else @endif @else @endif
@if (!empty($message)) @php $message = json_decode($message); @endphp @php $message = null; @endphp @endif
@php $start = $companyStaffs->firstItem(); @endphp @forelse ($companyStaffs as $companyStaff) @if (auth()->user()->role->name == 'staff' || auth()->user()->role->name == 'companyStaff') @endif @empty @endforelse
# Full Name Email Contact Address Company Permission Action
{{ $start + $loop->index }} {{ $companyStaff->name }} {{ $companyStaff->email }} {{ $companyStaff->phone }} {{ $companyStaff->address }} {{ $companyStaff->company->name ?? '' }} Permission @if (auth()->user()->is_edit == 1) @else @endif @if (auth()->user()->is_delete == 1) @else @endif @else
No Data!
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
@push('scripts') @endpush