@extends('layouts.app') @push('css') @endpush @section('content')
{{ $title }}
{{ csrf_field() }}

Opening Balance : {{ number_format($opening,2) }}
@foreach($histories as $history) @php $opening = ($opening+$history->amount) @endphp @endforeach
# Purchase Order Amount Purchase Order Payment Date Balance
{{ $loop->iteration }} {{ $history->amount < 0 ? number_format($history->amount,2) : "" }} {{ $history->amount > 0 ? number_format($history->amount,2) : "" }} {{ convert_date2($history->payment_date) }} {{ number_format(($opening),2) }}
Total Balance {{ number_format($opening,2) }}
@endsection @push('js') @endpush