{!! 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 |
DEBIT |
CREDIT |
{{-- INCOMES --}}
@php
$incometotal = 0;
@endphp
@foreach($lists as $list)
@if(count($list->items) > 0)
keyboard_arrow_down{{ Carbon\Carbon::parse($list->journal_date)->format($date_format) }}
@php
$ctotal = 0;
$dtotal = 0;
$items = $list->items;
@endphp
@foreach ($items as $item)
@php
$ctotal = $ctotal + $item->credit;
$dtotal = $ctotal + $item->debit;
$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->debit!='')?money($item->debit, 'USD', true):'' }} |
{{ ($item->credit!='')?money($item->credit, 'USD', true):'' }} |
@endforeach
| {{ $list->name }} |
@money($dtotal, 'USD', true) |
@money($ctotal, 'USD', true) |
@php
$ctotal = 0;
$dtotal = 0;
@endphp
@endif
@endforeach
@include('accounts.reports.standard.filter')
@include('includes.datepicker')
@endsection