{!! Form::open(['url'=>'/reports/standard/journal']) !!}
@include('accounts.reports.standard.date-filter-view')
{!! Form::close() !!}
{{ trans('reports.standard.profitandlossdetails') }}
DATE |
TRANSACTION TYPE |
NUM |
NAME |
DESCRIPTION |
ACCOUNT |
AMOUNT |
@if(count($lists) == 0)
No Data |
@endif
@php
$incometotal = 0;
$i = 0;
@endphp
@foreach($lists as $key=>$list)
@if(count($list) > 0)
keyboard_arrow_down{{ $key }}
@php
$total = 0;
@endphp
@foreach ($list as $item)
@php
if($item->amount_type == 'add') {
$total = $total + $item->amount;
} else {
$total = $total - $item->amount;
}
$accnt = $item->account;
@endphp
{{ Carbon\Carbon::parse($item->created_at)->format($date_format) }} |
{{ $item->transaction_type }} |
{{ $item->number }} |
{{ $item->description }} |
{{ isset($accnt)?$accnt->name:'' }} |
{{ ($item->amount_type=='add')?'+':'-' }} @money($item->amount, 'USD', true) |
@endforeach
{{ $key }} Total |
@money($total, 'USD', true) |
@php
$total = 0;
@endphp
@endif
@endforeach
@include('accounts.reports.standard.filter')
@include('includes.datepicker')
@endsection