@extends('layouts.admin') @section('page-title') {{ __('Manage Bank Account') }} @endsection @section('breadcrumb') @endsection @section('action-btn')
@can('create bank account') @endcan
@endsection @section('content')
@if (Gate::check('edit bank account') || Gate::check('delete bank account')) @endif @foreach ($accounts as $account) @if (Gate::check('edit bank account') || Gate::check('delete bank account')) @endif @endforeach
{{ __('Chart Of Account') }} {{ __('Name') }} {{ __('Bank') }} {{ __('Account Number') }} {{ __('Current Balance') }} {{ __('Contact Number') }} {{ __('Bank Branch') }} {{ __('Action') }}
{{ !empty($account->chartAccount) ? $account->chartAccount->name : '-' }} {{ $account->holder_name }} {{ $account->bank_name }} {{ $account->account_number }} {{ \Auth::user()->priceFormat($account->opening_balance ?? '-') }} {{ $account->contact_number ?? '-' }} {{ $account->bank_address ?? '-' }} @if ($account->holder_name != 'Cash') @can('edit bank account') @endcan @can('delete bank account')
{!! Form::open([ 'method' => 'DELETE', 'route' => ['bank-account.destroy', $account->id], 'id' => 'delete-form-' . $account->id, ]) !!} {!! Form::close() !!}
@endcan @else - @endif
@endsection