JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr@extends('layouts.admin') @section('page-title') {{ __('Manage Chart of Accounts') }} @endsection @section('breadcrumb') @endsection @push('script-page') @endpush @section('action-btn')
@can('create chart of account') @endcan
@endsection @section('content')
{{ Form::open(['route' => ['chart-of-account.index'], 'method' => 'GET', 'id' => 'report_bill_summary']) }}
{{ Form::label('start_date', __('Start Date'), ['class' => 'form-label']) }} {{ Form::date('start_date', $filter['startDateRange'], ['class' => 'startDate form-control']) }}
{{ Form::label('end_date', __('End Date'), ['class' => 'form-label']) }} {{ Form::date('end_date', $filter['endDateRange'], ['class' => 'endDate form-control']) }}
{{ Form::close() }}
@foreach ($chartAccounts as $type => $accounts)
{{ $type }}
@foreach ($accounts as $account) @php $balance = 0; $totalDebit = 0; $totalCredit = 0; $totalBalance = App\Models\Utility::getAccountBalance($account->id,$filter['startDateRange'],$filter['endDateRange']); @endphp @endforeach
{{ __('Code') }} {{ __('Name') }} {{ __('Type') }} {{ __('Parent Account Name') }} {{ __('Balance') }} {{ __('Status') }} {{ __('Action') }}
{{ $account->code }} {{ $account->name }} {{ !empty($account->subType) ? $account->subType->name : '-' }} {{ !empty($account->parentAccount) ? $account->parentAccount->name : '-' }} @if (!empty($totalBalance)) {{ \Auth::user()->priceFormat($totalBalance) }} @else - @endif @if ($account->is_enabled == 1) {{ __('Enabled') }} @else {{ __('Disabled') }} @endif @can('edit chart of account') @endcan @can('delete chart of account')
{!! Form::open([ 'method' => 'DELETE', 'route' => ['chart-of-account.destroy', $account->id], 'id' => 'delete-form-' . $account->id, ]) !!} {!! Form::close() !!}
@endcan
@endforeach
@endsection