@extends('backEnd.master') @section('title') @lang('accounts.fund_transfer') @endsection @section('mainContent') @push('css') {{-- --}} @endpush @php @$setting = app('school_info'); if (!empty(@$setting->currency_symbol)) { @$currency = @$setting->currency_symbol; } else { @$currency = '$'; } @endphp

@lang('common.select_criteria')

{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'fund-transfer-store', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}

@lang('common.add_information')

@if ($errors->has('amount')) {{ @$errors->first('amount') }} @endif
@if ($errors->has('purpose')) {{ @$errors->first('purpose') }} @endif
@php $tooltip = ''; if (userPermission('fund-transfer-store')) { $tooltip = ''; } else { $tooltip = 'You have no permission to add'; } @endphp

@lang('accounts.from')

@foreach ($payment_methods as $payment_method)
@if ($payment_method->method == 'Bank')
@foreach ($bank_accounts as $bank_account) @endforeach
@endif
@endforeach @if ($errors->has('from_payment_method')) {{ @$errors->first('from_payment_method') }} @endif

@lang('accounts.to')

@foreach ($payment_methods as $payment_method)
@if ($payment_method->method == 'Bank')
@foreach ($bank_accounts as $bank_account) @endforeach
@endif
@endforeach @if ($errors->has('to_payment_method')) {{ @$errors->first('to_payment_method') }} @endif
{{ Form::close() }}

@lang('accounts.amount_transfer_list')

@php $total = 0; @endphp @foreach ($transfers as $transfer) @php $total = $total + $transfer->amount; @endphp @endforeach
@lang('accounts.purpose') @lang('accounts.amount') @lang('accounts.from') @lang('accounts.to')
{{ $transfer->purpose }} {{ $transfer->amount }} {{ $transfer->fromPaymentMethodName->method }} {{ $transfer->toPaymentMethodName->method }}
@lang('accounts.total') {{ currency_format($total) }}
@endsection @push('script') @endpush