@extends('layouts.master') @section('title') {{translate('journal entry')}} @endsection @section('content')
{{translate('journal entry')}} @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('account_id',translate('chart_of_account'),array('class'=>'')) !!} {!! Form::select('account_id',$chart_of_accounts,$account_id, array('class' => 'form-control select2', 'placeholder'=>translate('select'))) !!}
{{translate('reset')}}!
{!! Form::close() !!}
@if(!empty($start_date))
@foreach($data as $key) @endforeach
# {{translate('transaction id')}} {{translate('transaction type')}} {{translate('date')}} {{translate('account')}} {{translate('debit')}} {{translate('credit')}}
{{ $key->id }} {{ $key->reference }} @if($key->transaction_type=='disbursement') {{translate('disbursement')}} @endif @if($key->transaction_type=='accrual') {{translate('accrual')}} @endif @if($key->transaction_type=='deposit') {{translate('deposit')}} @endif @if($key->transaction_type=='withdrawal') {{translate('withdrawal')}} @endif @if($key->transaction_type=='manual_entry') {{translate('manual_entry')}} @endif @if($key->transaction_type=='pay_charge') {{translate('pay')}} {{translate('charge')}} @endif @if($key->transaction_type=='transfer_fund') {{translate('transfer_fund charge')}} @endif @if($key->transaction_type=='expense') {{translate('expense')}} @endif @if($key->transaction_type=='payroll') {{translate('payroll')}} @endif @if($key->transaction_type=='income') {{translate('income')}} @endif @if($key->transaction_type=='penalty') {{translate('penalty')}} @endif @if($key->transaction_type=='fee') {{translate('fee')}} @endif @if($key->transaction_type=='close_write_off') {{translate('write waiver')}} @endif @if($key->transaction_type=='repayment_recovery') {{translate('repayment')}} @endif @if($key->transaction_type=='repayment') {{translate('repayment')}} @endif @if($key->transaction_type=='interest_accrual') {{translate('interest accrual')}} @endif @if($key->transaction_type=='fee_accrual') {{translate('fee accrual')}} @endif {{ $key->date }} @if(!empty($key->chart)) {{ $key->chart->name }} @endif {{ currency_converter($key->debit) }} {{ currency_converter($key->credit) }}
@endif @endsection @section('footer-scripts') @endsection