@forelse ($members as $item) @empty @endforelse
@lang('modules.staff.name') @lang('modules.customer.email') @lang('app.role') @lang('app.action')
{{ $item->name }} {{ $item->email ?? '--' }} @if ($item->id == auth()->id()) @lang('messages.cannotEditOwnRole') @elseif(user_can('Update Staff Member')) @else {{ $item->getRoleNames()[0] }} @endif @if(user_can('Update Staff Member')) @lang('app.update') @endif @if(user_can('Delete Staff Member') && $item->id != user()->id) @endif
@lang('messages.noMemberFound')
{{ $members->links() }}
{{ __("modules.staff.editMember") }} @if ($customer) @livewire('forms.edit-staff', ['member' => $customer], key(str()->random(50))) @endif {{ __('Close') }} @lang('modules.staff.deleteMember')? @lang('modules.staff.deleteMemberMessage') {{ __('Cancel') }} @if ($customer) {{ __('Delete') }} @endif