@extends('layouts.default') @section('title', trans('reports.standard.journal')) @section('new_button') {{-- // --}} @endsection @section('content')
{!! Form::open(['url'=>'/reports/standard/journal']) !!} @include('accounts.reports.standard.date-filter-view') {!! Form::close() !!}

{{ trans('reports.standard.profitandlossdetails') }}

@if(count($lists) == 0) @endif
DATE TRANSACTION TYPE NUM NAME DESCRIPTION ACCOUNT AMOUNT
No Data
@php $incometotal = 0; $i = 0; @endphp @foreach($lists as $key=>$list) @if(count($list) > 0)

@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 @endforeach
{{ 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)
{{ $key }} Total @money($total, 'USD', true)
@php $total = 0; @endphp @endif @endforeach
@include('accounts.reports.standard.filter') @include('includes.datepicker') @endsection