@extends('layouts.admin') @section('title', trans('general.dashboard')) @section('content')
{{ trans('dashboard.total_incomes') }} @money($total_incomes['total'], setting('general.default_currency'), true)
{{ trans('dashboard.receivables') }} {{ $total_incomes['open_invoice'] }} / {{ $total_incomes['overdue_invoice'] }}
{{ trans('dashboard.total_expenses') }} @money($total_expenses['total'], setting('general.default_currency'), true)
{{ trans('dashboard.payables') }} {{ $total_expenses['open_bill'] }} / {{ $total_expenses['overdue_bill'] }}
{{ trans('dashboard.total_profit') }} @money($total_profit['total'], setting('general.default_currency'), true)
{{ trans('general.upcoming') }} {{ $total_profit['open'] }} / {{ $total_profit['overdue'] }}

{{ trans('dashboard.incomes_by_category') }}

    @foreach ($incomes as $item)
  • {{ $item['amount'] . ' ' . $item['label'] }}
  • @endforeach

{{ trans('dashboard.expenses_by_category') }}

    @foreach ($expenses as $item)
  • {{ $item['amount'] . ' ' . $item['label'] }}
  • @endforeach

{{ trans('dashboard.account_balance') }}

@if ($accounts->count()) @foreach($accounts as $item) @endforeach
{{ $item->name }} @money($item->balance, $item->currency_code, true)
@else
{{ trans('general.no_records') }}
@endif

{{ trans('dashboard.latest_incomes') }}

@if ($latest_incomes->count()) @foreach($latest_incomes as $item) @endforeach
{{ trans('general.date') }} {{ trans_choice('general.categories', 1) }} {{ trans('general.amount') }}
{{ Date::parse($item->paid_at)->format($date_format) }} {{ $item->category ? $item->category->name : trans_choice('general.invoices', 2) }} @money($item->amount, $item->currency_code, true)
@else
{{ trans('general.no_records') }}
@endif

{{ trans('dashboard.latest_expenses') }}

@if ($latest_expenses->count()) @foreach($latest_expenses as $item) @endforeach
{{ trans('general.date') }} {{ trans_choice('general.categories', 1) }} {{ trans('general.amount') }}
{{ Date::parse($item->paid_at)->format($date_format) }} {{ $item->category ? $item->category->name : trans_choice('general.bills', 2) }} @money($item->amount, $item->currency_code, true)
@else
{{ trans('general.no_records') }}
@endif
@endsection @push('js') @endpush @push('scripts') @endpush