@extends('layouts.app') @section('content')

{{ __('Employees') }}

@hasPermission('shop.employee.create') {{ __('Create New') }} @endhasPermission
@forelse($users as $key => $user) @empty @endforelse
{{ __('SL') }}. {{ __('Profile') }} {{ __('Name') }} {{ __('Phone') }} {{ __('Email') }} {{ __('Role') }} {{ __('Action') }}
{{ ++$key }} {{ Str::limit($user->fullName, 50, '...') }} {{ $user->phone ?? 'N/A' }} {{ $user->email ?? 'N/A' }} @php $role = $user->roles()?->pluck('name')->first(); @endphp {{ $role }}
@if ($role != 'root') @hasPermission('shop.employee.permission') @endhasPermission @hasPermission('shop.employee.reset-password') @endhasPermission @hasPermission('shop.employee.destroy') @endhasPermission @else N/A @endif
{{ __('No Data Found') }}
{{ $users->withQueryString()->links() }}
{{-- Reset Password Modal --}}
@csrf
@endsection @push('scripts') @endpush