@php use App\Models\warehouse; @endphp @extends('admin.layouts.app') @section('title',get_setting('site_name').' Staff List') @push('css') @endpush @section('content')
{{__('All Active Employee')}}
{{__('Export')}} @can('User-create') {{__('Add New')}} @endcan
{{-- --}} @foreach($staffs as $key => $staff) @if($staff->user != null && $staff->user->is_active!=0) {{-- --}} @endif @endforeach
#Employee ID {{__('Name')}} {{__('Email')}} {{__('Phone')}} {{__('Staff Location')}} {{__('Designation')}} {{__('Status')}} {{__('Options')}}
{{ ($key+1) + ($staffs->currentPage() - 1)*$staffs->perPage() }}{{$staff->user->id}} {{$staff->user->name}} {{$staff->user->email}} {{$staff->user->phone}} {{!empty($staff->warehouse)?$staff->warehouse->name:''}} @if ($staff->designation != null) {{ $staff->designation->name }} @endif @if($staff->user_id!=auth()->user()->id) @can('User-approve') @endcan @endif @can('User-edit') @endcan {{-- @can('User-delete')--}} {{-- --}} {{-- --}} {{-- --}} {{-- @endcan--}} @can('User-list') @endcan @can('User-list') @endcan
{{ $staffs->appends(request()->query())->links() }}
@endsection @section('script') @endsection