خطا
@endif
@php
$user = auth()->user();
$isAdminOrManager = !empty(array_intersect(['Admin', 'Manger'], (array) $user->roles_name));
$accountsQuery = App\Models\financial_accounts::with('customer');
if (!$isAdminOrManager) {
$accountsQuery->whereIn('orginal_type', [1, 2, 5, 6, 7, 8]);
}
$accounts = $accountsQuery->get();
@endphp
- @foreach ($errors->all() as $error)
- {{ $error }} @endforeach