@extends('layouts.customer') @section('title', trans('general.dashboard')) @section('content')

{{ trans_choice('general.invoices', 2) }}

@if ($user->invoices->count()) @foreach($user->invoices as $item) @endforeach
{{ trans('invoices.invoice_number') }} {{ trans('general.amount') }} {{ trans('invoices.invoice_date') }} {{ trans('invoices.due_date') }} {{ trans_choice('general.statuses', 1) }}
{{ $item->invoice_number }} @money($item->amount, $item->currency_code, true) {{ Date::parse($item->invoiced_at)->format($date_format) }} {{ Date::parse($item->due_at)->format($date_format) }} {{ $item->status->name }}
@else
{{ trans('general.no_records') }}
@endif

{{ trans_choice('general.payments', 2) }}

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