@extends('layouts.admin') @section('page-title') {{__('Bank Balance Transfer')}} @endsection @section('breadcrumb') @endsection @section('action-btn')
{{-- --}} @can('create bank transfer') @endcan
@endsection @section('content')
{{ Form::open(array('route' => array('bank-transfer.index'),'method' => 'GET','id'=>'transfer_form')) }}
{{ Form::label('date', __('Date'),['class'=>'form-label'])}} {{ Form::text('date', isset($_GET['date'])?$_GET['date']:null, array('class' => 'form-control month-btn','id'=>'pc-daterangepicker-1','readonly')) }}
{{ Form::label('f_account', __('From Account'),['class'=>'form-label'])}} {{ Form::select('f_account',$account,isset($_GET['f_account'])?$_GET['f_account']:'', array('class' => 'form-control select')) }}
{{ Form::label('t_account', __('To Account'),['class'=>'form-label'])}} {{ Form::select('t_account', $account,isset($_GET['t_account'])?$_GET['t_account']:'', array('class' => 'form-control select')) }}
{{ Form::close() }}
@if(Gate::check('edit transfer') || Gate::check('delete transfer')) @endif @foreach ($transfers as $transfer) @if(Gate::check('edit transfer') || Gate::check('delete transfer')) @endif @endforeach
{{__('Date')}} {{__('From Account')}} {{__('To Account')}} {{__('Amount')}} {{__('Reference')}} {{__('Description')}} {{__('Action')}}
{{ \Auth::user()->dateFormat( $transfer->date) }} {{ !empty($transfer->fromBankAccount())? $transfer->fromBankAccount()->bank_name.' '.$transfer->fromBankAccount()->holder_name:''}} {{!empty( $transfer->toBankAccount())? $transfer->toBankAccount()->bank_name.' '. $transfer->toBankAccount()->holder_name:''}} {{ \Auth::user()->priceFormat( $transfer->amount)}} {{ $transfer->reference}} {{ $transfer->description}} @can('edit transfer') @endcan @can('delete transfer')
{!! Form::open(['method' => 'DELETE', 'route' => ['bank-transfer.destroy', $transfer->id],'id'=>'delete-form-'.$transfer->id]) !!} {!! Form::close() !!}
@endcan
@endsection