@extends('layouts.master') @section('css') @section('title') {{ __('home.account_statement') }}@stop @endsection @section('page-header')
@endsection @section('content') @if (count($errors) > 0)
خطا
@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
@endsection @section('js') @if(session('error')) @endif @endsection