@extends('admin.layouts.main') @section('title', 'Finance Report') @section('content')

Finance Report

Filter Period
Total Revenue
Rp {{ number_format(isset($apiData['total_revenue']) ? $apiData['total_revenue'] : 0, 0, ',', '.') }}
Net Profit
Rp {{ number_format(isset($apiData['net_profit']) ? $apiData['net_profit'] : 0, 0, ',', '.') }}
Operating Costs
Rp {{ number_format(isset($apiData['operating_costs']) ? $apiData['operating_costs'] : 0, 0, ',', '.') }}
Gross Margin
{{ isset($apiData['gross_margin']) ? number_format($apiData['gross_margin'], 1) : 0 }}%
Income Statement
Period: {{ date('F Y') }}
Description Amount (Rp) Percentage
Revenue
  Food Sales Rp {{ number_format(isset($apiData['food_sales']) ? $apiData['food_sales'] : 0, 0, ',', '.') }} {{ isset($apiData['food_sales_percentage']) ? number_format($apiData['food_sales_percentage'], 1) : 0 }}%
  Beverage Sales Rp {{ number_format(isset($apiData['beverage_sales']) ? $apiData['beverage_sales'] : 0, 0, ',', '.') }} {{ isset($apiData['beverage_sales_percentage']) ? number_format($apiData['beverage_sales_percentage'], 1) : 0 }}%
Total Revenue Rp {{ number_format(isset($apiData['total_revenue']) ? $apiData['total_revenue'] : 0, 0, ',', '.') }} 100%
Cost of Goods Sold
  Food Costs Rp {{ number_format(isset($apiData['food_costs']) ? $apiData['food_costs'] : 0, 0, ',', '.') }} {{ isset($apiData['food_costs_percentage']) ? number_format($apiData['food_costs_percentage'], 1) : 0 }}%
  Beverage Costs Rp {{ number_format(isset($apiData['beverage_costs']) ? $apiData['beverage_costs'] : 0, 0, ',', '.') }} {{ isset($apiData['beverage_costs_percentage']) ? number_format($apiData['beverage_costs_percentage'], 1) : 0 }}%
Total COGS Rp {{ number_format(isset($apiData['total_cogs']) ? $apiData['total_cogs'] : 0, 0, ',', '.') }} {{ isset($apiData['cogs_percentage']) ? number_format($apiData['cogs_percentage'], 1) : 0 }}%
Gross Profit Rp {{ number_format(isset($apiData['gross_profit']) ? $apiData['gross_profit'] : 0, 0, ',', '.') }} {{ isset($apiData['gross_profit_percentage']) ? number_format($apiData['gross_profit_percentage'], 1) : 0 }}%
Operating Expenses
  Salaries & Wages Rp {{ number_format(isset($apiData['salary_expense']) ? $apiData['salary_expense'] : 0, 0, ',', '.') }} {{ isset($apiData['salary_percentage']) ? number_format($apiData['salary_percentage'], 1) : 0 }}%
  Rent & Utilities Rp {{ number_format(isset($apiData['rent_expense']) ? $apiData['rent_expense'] : 0, 0, ',', '.') }} {{ isset($apiData['rent_percentage']) ? number_format($apiData['rent_percentage'], 1) : 0 }}%
  Marketing Rp {{ number_format(isset($apiData['marketing_expense']) ? $apiData['marketing_expense'] : 0, 0, ',', '.') }} {{ isset($apiData['marketing_percentage']) ? number_format($apiData['marketing_percentage'], 1) : 0 }}%
Total Operating Expenses Rp {{ number_format(isset($apiData['total_operating_expenses']) ? $apiData['total_operating_expenses'] : 0, 0, ',', '.') }} {{ isset($apiData['operating_expenses_percentage']) ? number_format($apiData['operating_expenses_percentage'], 1) : 0 }}%
Net Profit Before Tax Rp {{ number_format(isset($apiData['net_profit_before_tax']) ? $apiData['net_profit_before_tax'] : 0, 0, ',', '.') }} {{ isset($apiData['net_profit_percentage']) ? number_format($apiData['net_profit_percentage'], 1) : 0 }}%
  Tax (10%) Rp {{ number_format(isset($apiData['tax']) ? $apiData['tax'] : 0, 0, ',', '.') }} {{ isset($apiData['tax_percentage']) ? number_format($apiData['tax_percentage'], 1) : 0 }}%
Net Profit After Tax Rp {{ number_format(isset($apiData['net_profit_after_tax']) ? $apiData['net_profit_after_tax'] : 0, 0, ',', '.') }} {{ isset($apiData['net_profit_after_tax_percentage']) ? number_format($apiData['net_profit_after_tax_percentage'], 1) : 0 }}%
Expense Breakdown
Monthly Trend
Recent Financial Transactions
@if(isset($apiData['transactions']) && count($apiData['transactions']) > 0) @foreach($apiData['transactions'] as $transaction) @endforeach @else @endif
Date Transaction ID Type Description Amount (Rp) Balance Category
{{ date('d/m/Y', strtotime($transaction['date'])) }} #{{ $transaction['id'] }} {{ ucfirst($transaction['type']) }} {{ $transaction['description'] }} {{ $transaction['type'] == 'income' ? '+' : '-' }} Rp {{ number_format($transaction['amount'], 0, ',', '.') }} Rp {{ number_format($transaction['balance'], 0, ',', '.') }} {{ $transaction['category'] }}
No transactions available
@endsection @section('scripts') @endsection