@extends('layouts.master') @section('title') {{trans_choice('general.journal',1)}} {{trans_choice('general.entry',2)}} @endsection @section('content')
{{trans_choice('general.journal',1)}} {{trans_choice('general.entry',2)}} @if(!empty($start_date)) for period: {{$start_date}} to {{$end_date}} @endif
{!! Form::open(array('url' => Request::url(), 'method' => 'post','class'=>'form-horizontal', 'name' => 'form')) !!}
{!! Form::label('start_date',trans_choice('general.start',1).' '.trans_choice('general.date',1),array('class'=>'')) !!} {!! Form::text('start_date',$start_date, array('class' => 'form-control date-picker', 'placeholder'=>"",'required'=>'required')) !!}
{!! Form::label('end_date',trans_choice('general.end',1).' '.trans_choice('general.date',1),array('class'=>'')) !!} {!! Form::text('end_date',$end_date, array('class' => 'form-control date-picker', 'placeholder'=>"",'required'=>'required')) !!}
{!! Form::label('account_id',trans_choice('general.chart_of_account',1),array('class'=>'')) !!} {!! Form::select('account_id',$chart_of_accounts,$account_id, array('class' => 'form-control select2', 'placeholder'=>trans_choice('general.select',1),'required'=>'required')) !!}
{{trans_choice('general.reset',1)}}!
{!! Form::close() !!}
@if(!empty($start_date))
@foreach($data as $key) @endforeach
# {{trans_choice('general.transaction',1)}} {{trans_choice('general.id',1)}} {{trans_choice('general.transaction',1)}} {{trans_choice('general.type',1)}} {{trans_choice('general.date',1)}} {{trans_choice('general.account',1)}} {{trans_choice('general.debit',1)}} {{trans_choice('general.credit',1)}}
{{ $key->id }} {{ $key->reference }} @if($key->transaction_type=='disbursement') {{trans_choice('general.disbursement',1)}} @endif @if($key->transaction_type=='accrual') {{trans_choice('general.accrual',1)}} @endif @if($key->transaction_type=='deposit') {{trans_choice('general.deposit',1)}} @endif @if($key->transaction_type=='withdrawal') {{trans_choice('general.withdrawal',1)}} @endif @if($key->transaction_type=='manual_entry') {{trans_choice('general.manual_entry',2)}} @endif @if($key->transaction_type=='pay_charge') {{trans_choice('general.pay',1)}} {{trans_choice('general.charge',1)}} @endif @if($key->transaction_type=='transfer_fund') {{trans_choice('general.transfer_fund',1)}} {{trans_choice('general.charge',2)}} @endif @if($key->transaction_type=='expense') {{trans_choice('general.expense',1)}} @endif @if($key->transaction_type=='payroll') {{trans_choice('general.payroll',1)}} @endif @if($key->transaction_type=='income') {{trans_choice('general.income',1)}} @endif @if($key->transaction_type=='penalty') {{trans_choice('general.penalty',1)}} @endif @if($key->transaction_type=='fee') {{trans_choice('general.fee',1)}} @endif @if($key->transaction_type=='close_write_off') {{trans_choice('general.write',1)}} {{trans_choice('general.waiver',2)}} @endif @if($key->transaction_type=='repayment_recovery') {{trans_choice('general.repayment',1)}} @endif @if($key->transaction_type=='repayment') {{trans_choice('general.repayment',1)}} @endif @if($key->transaction_type=='interest_accrual') {{trans_choice('general.interest',1)}} {{trans_choice('general.accrual',1)}} @endif @if($key->transaction_type=='fee_accrual') {{trans_choice('general.fee',1)}} {{trans_choice('general.accrual',1)}} @endif {{ $key->date }} @if(!empty($key->chart)) {{ $key->chart->name }} @endif {{ number_format($key->debit,2) }} {{ number_format($key->credit,2) }}
@endif @endsection @section('footer-scripts') @endsection