Path : /var/www/html/usd_loan_system/resources/views/accounting/ |
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
Current File : /var/www/html/usd_loan_system/resources/views/accounting/journal.blade.php |
@extends('layouts.master') @section('title') {{translate('journal entry')}} @endsection @section('content') <div class="panel panel-white"> <div class="panel-heading"> <h6 class="panel-title"> {{translate('journal entry')}} @if(!empty($start_date)) for period: <b>{{$start_date}} to {{$end_date}}</b> @endif </h6> <div class="heading-elements"> </div> </div> <div class="panel-body hidden-print"> {!! Form::open(array('url' => Request::url(), 'method' => 'post','class'=>'form-horizontal', 'name' => 'form')) !!} <div class="row"> <div class="col-md-4"> <x-forms.date-range-picker name="date_range" :start-date="$start_date" :end-date="$end_date" /> </div> <div class="col-md-4"> {!! 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'))) !!} </div> </div> <div class="panel-body"> <div class="row"> <div class="col-xs-12"> <button type="submit" class="btn btn-success">{{translate('search')}}! </button> <a href="{{Request::url()}}" class="btn btn-danger">{{translate('reset')}}!</a> </div> </div> </div> {!! Form::close() !!} </div> <!-- /.panel-body --> </div> <!-- /.box --> @if(!empty($start_date)) <div class="panel panel-white"> <div class="panel-body "> <div class="table-responsive"> <table id="data-table" class="table table-striped table-condensed table-hover"> <thead> <tr> <th>#</th> <th>{{translate('transaction id')}}</th> <th>{{translate('transaction type')}}</th> <th>{{translate('date')}}</th> <th>{{translate('account')}}</th> <th>{{translate('debit')}}</th> <th>{{translate('credit')}}</th> </tr> </thead> <tbody> @foreach($data as $key) <tr> <td>{{ $key->id }}</td> <td>{{ $key->reference }}</td> <td> @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 </td> <td>{{ $key->date }}</td> <td> @if(!empty($key->chart)) {{ $key->chart->name }} @endif </td> <td class="credit">{{ currency_converter($key->debit) }}</td> <td class="credit">{{ currency_converter($key->credit) }}</td> </tr> @endforeach </tbody> </table> </div> </div> <!-- /.panel-body --> </div> @endif @endsection @section('footer-scripts') <script> $('#data-table').DataTable({ "order": [[0, "asc"]], "columnDefs": [ {"orderable": false, "targets": []} ], "language": { "lengthMenu": "{{ translate('lengthMenu') }}", "zeroRecords": "{{ translate('zeroRecords') }}", "info": "{{ translate('info') }}", "infoEmpty": "{{ translate('infoEmpty') }}", "search": "{{ translate('search') }}", "infoFiltered": "{{ translate('infoFiltered') }}", "paginate": { "first": "{{ translate('first') }}", "last": "{{ translate('last') }}", "next": "{{ translate('next') }}", "previous": "{{ translate('previous') }}" } }, responsive: false }); </script> @endsection