@extends('layouts.dashboard') @section('title', trans('dashboard.nav_reports')) @section('header_title', trans('dashboard.nav_reports')) @section('content')
{{ trans('dashboard.export_csv') }}
{{ trans('dashboard.total_invoices') }}
{{ $stats['count'] }}
{{ trans('dashboard.total_sales_label') }}
{{ number_format($stats['sales'], 2) }}
{{ trans('dashboard.th_vat') }}
{{ number_format($stats['vat'], 2) }}
{{ trans('dashboard.failed_invoices') }}
{{ $stats['failed'] }}
@forelse($byCustomer as $row) @empty @endforelse
{{ trans('dashboard.th_buyer') }} {{ trans('dashboard.total_invoices') }} {{ trans('dashboard.total_sales_label') }} {{ trans('dashboard.th_vat') }}
{{ $row->buyer_name }} {{ $row->invoices_count }} {{ number_format($row->sales_total, 2) }} {{ number_format($row->vat_total, 2) }}
{{ trans('dashboard.no_invoices_found') }}
@endsection