@extends('layouts.master') @section('content')
Back to Dashboard
{{ isset($isEdit) ? 'Edit Account' : 'Add General Ledger Account' }}
@csrf
@if(Session::has('success'))
{{ Session('success') }}
@endif @if(Session::has('error'))
{{ Session('error') }}
@endif
@if ($errors->any())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
General Ledger Accounts
@foreach($records as $record) @endforeach
Code Name Financial Category Account Type Sub Account Action
{{ $record->code }} {{ $record->account_name }} @if($record->financial_category == 'IS') Income Statement @elseif($record->financial_category == 'BS') Balance Sheet @else {{ $record->financial_category }} @endif {{ $record->accountType ? $record->accountType->name : 'N/A' }} → Sub Acc
@endsection