@extends('layouts.app') @section('title', __('Reports & Analytics')) @section('content')
{{-- Gross margin summary (#5) --}}{{ __('Revenue') }} ({{ $year }})
{{ money($margin['revenue']) }}
{{ __('Purchases') }}
{{ money($margin['purchases']) }}
{{ __('COGS') }}
{{ money($margin['cost']) }}
{{ __('Gross margin') }}
{{ money($margin['gross_margin']) }}
{{ __('Margin rate') }}
{{ $margin['margin_rate'] }}%
| {{ __('Month') }} | @foreach ($trend as $row){{ $row['label'] }} | @endforeach
|---|---|
| {{ $year }} | @foreach ($trend as $row){{ money($row['current']) }} | @endforeach
| {{ $year - 1 }} | @foreach ($trend as $row){{ money($row['previous']) }} | @endforeach
| {{ __('Month') }} | {{ __('Revenue') }} | {{ __('Purchases') }} | {{ __('COGS') }} | {{ __('Margin') }} | {{ __('Margin %') }} |
|---|---|---|---|---|---|
| {{ $row['label'] }} | {{ money($row['revenue']) }} | {{ money($row['purchases']) }} | {{ money($row['cost']) }} | {{ money($row['margin']) }} | {{ $row['margin_rate'] }}% |
| {{ __('Total') }} | {{ money(collect($accounting)->sum('revenue')) }} | {{ money(collect($accounting)->sum('purchases')) }} | {{ money(collect($accounting)->sum('cost')) }} | {{ money(collect($accounting)->sum('margin')) }} |
| {{ __('Product') }} | {{ __('Qty') }} | {{ __('Revenue') }} | {{ __('Profit') }} |
|---|---|---|---|
| {{ $product->name }} | {{ $product->qty }} | {{ money($product->revenue) }} | {{ money($product->profit) }} |
| {{ __('No data.') }} | |||
| # | {{ __('Employee') }} | {{ __('Sales') }} | {{ __('Revenue') }} |
|---|---|---|---|
| {{ $i + 1 }} | {{ $row->name }} | {{ $row->sales_count }} | {{ money($row->revenue) }} |
| {{ __('No data.') }} | |||