@extends('admin.layouts.app') @section('panel')
@if (can('admin.branch.staff.details') || can('admin.branch.staff.status')) @endif @forelse($staffs as $staff) @if (can('admin.branch.staff.details') || can('admin.branch.staff.status')) @endif @empty @endforelse
@lang('S.N.') @lang('Name') @lang('Designation') @lang('Email') @lang('Mobile') @lang('Branch') @lang('Status')@lang('Action')
{{ $loop->index + $staffs->firstItem() }} {{ $staff->name }} @if ($staff->designation) @php $branch = implode(', ', $staff->assignBranch->pluck('name')->toArray());@endphp @lang('Manager') @else @lang('Account Officer') @endif {{ $staff->email }} {{ $staff->mobile }} @if (@$staff->branch()) {{ @$staff->branch()->name }} @else @lang('N/A') @endif @php echo $staff->statusBadge;@endphp
@can('admin.branch.staff.details') @lang('Details') @endcan @can('admin.branch.staff.status') @if ($staff->status) @else @endif @endcan
{{ __($emptyMessage) }}
@if ($staffs->hasPages()) @endif
@endsection @push('breadcrumb-plugins')
@can('admin.branch.staff.add') @lang('Add New') @endcan @endpush