@php // Read the current staff permissions once so the row buttons stay simple. $canCreateAccount = \App\Support\AdminAccess::canAction('accounts', 'create'); $canEditAccount = \App\Support\AdminAccess::canAction('accounts', 'edit'); $canDeleteAccount = \App\Support\AdminAccess::canAction('accounts', 'delete'); @endphp
| {{ __('Account Name') }} | {{ __('Type') }} | {{ __('Account No') }} | {{ __('Balance') }} | {{ __('Actions') }} |
|---|---|---|---|---|
| {{ $account->account_name }} | {{ $account->account_type }} | {{ $account->account_number ?? __('N/A') }} | Rs. {{ number_format($account->current_balance) }} |
@if($canEditAccount)
@endif
@if($canDeleteAccount)
@endif
|