@extends('layouts.app') @section('title', 'Financial Reports') @section('content')

Financial Reports

Restaurant and bar profit & loss, cash flow, and outstanding balances.

Sales vs cost vs profit

@if ($expensesByCategory->isNotEmpty())

Expenses by category

@endif

Profit & Loss

Restaurant
Sales{{ number_format($restaurantSales, 2) }}
− Food cost({{ number_format($restaurantCost, 2) }})
= Gross profit{{ number_format($restaurantGP, 2) }}
Bar
Sales{{ number_format($barSales, 2) }}
− Beverage cost({{ number_format($barCost, 2) }})
= Gross profit{{ number_format($barGP, 2) }}
Overall
Restaurant profit{{ number_format($restaurantGP, 2) }}
Bar profit{{ number_format($barGP, 2) }}
Other income{{ number_format($otherIncome, 2) }}
− Expenses({{ number_format($expensesTotal, 2) }})
= Net profit{{ number_format($netProfit, 2) }}

Expenses by category

@forelse ($expensesByCategory as $name => $amount) @empty @endforelse
{{ $name }}{{ number_format($amount, 2) }}
No approved expenses in this period.

Cash flow & balances

@can('data.customer_balances') @endcan
Cash received (all methods){{ number_format($cashIn, 2) }}
Cash paid out (expenses)({{ number_format($cashOut, 2) }})
Net cash movement{{ number_format($cashIn - $cashOut, 2) }}
Unpaid orders/tabs (no payment yet){{ number_format($creditOutstanding, 2) }}
Customer account balances owed{{ number_format($customerBalances->sum('balance'), 2) }}
Supplier balances owed{{ number_format($supplierBalances->sum('balance'), 2) }}
@can('data.customer_balances') @if ($customerBalances->isNotEmpty())
@foreach ($customerBalances as $customer) @endforeach
CustomerContactBalance owed
{{ $customer->name }}{{ $customer->phone ?? '—' }}{{ number_format($customer->balance, 2) }}
@endif @if ($supplierBalances->isNotEmpty())
@foreach ($supplierBalances as $supplier) @endforeach
SupplierContactBalance owed
{{ $supplier->name }}{{ $supplier->phone ?? '—' }}{{ number_format($supplier->balance, 2) }}
@endif @endcan
@endsection