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