@extends('backEnd.master') @section('title') @lang('accounts.bank_account') @endsection @section('mainContent')
@if(isset($bank_account)) @if(userPermission("bank-account-store")) @endif @endif
@if(isset($bank_account)) {{ Form::open(['class' => 'form-horizontal', 'route' => array('bank-account-update',@$bank_account->id), 'method' => 'PUT']) }} @else @if(userPermission("bank-account-store")) {{ Form::open(['class' => 'form-horizontal', 'route' => 'bank-account-store', 'method' => 'POST']) }} @endif @endif

@if(isset($bank_account)) @lang('accounts.edit_bank_account') @else @lang('accounts.add_bank_account') @endif

@if ($errors->has('bank_name')) {{ @$errors->first('bank_name') }} @endif
@if ($errors->has('account_name')) {{ @$errors->first('account_name') }} @endif
@if ($errors->has('account_number')) {{ @$errors->first('account_number') }} @endif
@if ($errors->has('account_type')) {{ @$errors->first('account_type') }} @endif
@if ($errors->has('opening_balance')) {{ @$errors->first('opening_balance') }} @endif
@php $tooltip = ""; if(userPermission("bank-account-store")){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}

@lang('accounts.bank_account_list')

@lang('accounts.bank_name') @lang('accounts.account_name') @lang('accounts.opening_balance') @lang('accounts.current_balance') @lang('common.note') @lang('common.action')
{{-- Start Delete Modal --}} {{-- Start Delete Modal --}} @endsection @include('backEnd.partials.data_table_js') @include('backEnd.partials.server_side_datatable') @section('script') @endsection