@extends('layouts.app') @section('content')

Cash Flow

@foreach($bookings as $booking) @endforeach @foreach($checkins as $checkin) @endforeach @foreach($checkouts as $checkout) @endforeach @foreach($purchases as $purchase) @endforeach @foreach($expenses as $expense) @endforeach @foreach($canceled as $cancel) @endforeach
Date Ref No Payment method Debit Credit Account Balance
Booking
{{ date('Y-m-d H:i', strtotime($booking->created_at))}} {{$booking->ref_no}} {{$booking->method}} {{$booking->amount ?? '0.00'}} {{$booking->amount ?? '0.00'}}
Checkin
{{ date('Y-m-d H:i', strtotime($checkin->created_at))}} {{$checkin->ref_no}} {{$checkin->method}} {{$checkin->amount ?? '0.00'}} {{$checkin->amount ?? '0.00'}}
Checkout
{{ date('Y-m-d H:i', strtotime($checkout->created_at))}} {{$checkout->ref_no}} {{$checkout->method}} {{$checkout->amount ?? '0.00'}} {{$checkout->amount ?? '0.00'}}
Purchase
{{ date('Y-m-d H:i', strtotime($purchase->created_at))}} {{$purchase->invoice_no}} {{$purchase->method}} {{$purchase->amount ?? '0.00'}} {{$purchase->amount ?? '0.00'}}
Expense
{{ date('Y-m-d H:i', strtotime($expense->created_at))}} {{$expense->invoice_no}} {{$expense->method}} {{$expense->amount ?? '0.00'}} {{$expense->amount ?? '0.00'}}
Refund
{{ date('Y-m-d H:i', strtotime($cancel->created_at))}} {{$cancel->ref_no}} {{$cancel->method}} {{$cancel->amount ?? '0.00'}} {{$cancel->amount ?? '0.00'}}
@endsection