@extends('layouts.main') @section('page-title') {{ __('Manage Bank Account') }} @endsection @section('page-breadcrumb') {{ __('Bank Account') }} @endsection @section('page-action') @stack('addButtonHook')
@can('bank account create') @endcan
@endsection @section('content')
@if(Gate::check('bank account edit') || Gate::check('bank account delete')) @endif @foreach ($accounts as $account) @if(Gate::check('bank account edit') || Gate::check('bank account delete')) @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}} {{ currency_format_with_sym($account->opening_balance)}} {{ $account->contact_number}} {{ $account->bank_address}} @if($account->holder_name!='Cash') @can('bank account edit') @endcan @can('bank account delete')
{{Form::open(array('route'=>array('bank-account.destroy', $account->id),'class' => 'm-0'))}} @method('DELETE') {{Form::close()}}
@endcan @else - @endif
@endsection