@extends('layouts.master-vnext') @inject('dateranges', 'App\Services\DateRangePickerService') @section('page-title') {{ $title }} @endsection @section('content')
{{ Form::customText('fromValue', Request::input('fromValue'), ['placeholder' => 'From', 'class' => 'form-control', 'style' => 'margin-right: 15px;'])}} {{ Form::customText('toValue', Request::input('toValue'), ['placeholder' => 'To', 'class' => 'form-control', 'style' => 'margin-right: 15px;'])}} {{ Form::customSelect('currency', $currencies->pluck('name', 'id'), Request::input('currency'), ['placeholder' => 'Currency', 'class' => 'form-control improved-select', 'style' => 'width: 250px;'])}}
@if( $title === "Safe" )

CFM - @foreach($currencies as $currency) {{ $currency->name }}: @currency($cashFromManila->where('currency.id', $currency->id)->sum('debit')) @if(!$loop->last) | @endif @endforeach

@endif @if( $title === "Manila" )

MFG - @foreach($currencies as $currency) {{ $currency->name }}: @currency($cashFromGermany->where('currency.id', $currency->id)->sum('debit')) @if(!$loop->last) | @endif @endforeach

@endif

@foreach($currencies as $currency) {{ $currency->name }}: @currency($cashOnHand->where('currency.id', $currency->id)->first() ? $cashOnHand->where('currency.id', $currency->id)->first()->ending_balance : 0) @if(!$loop->last) | @endif @endforeach

@foreach($entries->sortByDesc('entered_at') as $entry) @endforeach
Date Comment Beginning balance Debit Credit Ending balance
@date($entry->entered_at) {{ $entry->comment }} @currency($entry->beginning_balance) {{ $entry->currency->symbol }} @if($entry->debit > 0) @currency($entry->debit) {{ $entry->currency->symbol }} @endif @if($entry->credit > 0) @currency($entry->credit) {{ $entry->currency->symbol }} @endif @currency($entry->ending_balance) {{ $entry->currency->symbol }} edit
@endsection @section('js') @endsection