@extends('layouts.finance') @section('title', 'Revenue & Sales') @section('subtitle', 'Revenue streams and gross profit') @section('content') @php $rows = $revenues->getCollection(); $total = $rows->sum(fn($r) => $metrics->usd($r->amount, $r->currency)); $settings = $metrics->settings(); $gross = $total - (float) $settings['cogs']; @endphp
| Date | Stream | Description | Amount | Cur. | USD Eq. | Mix | |
|---|---|---|---|---|---|---|---|
| {{ $revenue->revenue_date?->format('d M Y') ?? '-' }} | {{ $revenue->stream }} | {{ $revenue->description ?? '-' }} | {{ $metrics->money($revenue->amount, $revenue->currency) }} | {{ $revenue->currency }} | {{ $metrics->money($usd) }} | {{ $total > 0 ? number_format(($usd / $total) * 100, 1).'%' : '0%' }} | Edit |
| No revenue yet. | |||||||