@extends('layouts.app') @section('title', __('reports.sales_report')) @section('content')
{{ __('reports.sales_report') }}
{{ $sales->count() }}
{{ __('sales.invoices') }}
{{ money($sales->sum('total')) }}
{{ __('app.total') }}
{{ money($sales->sum('due')) }}
{{ __('app.due') }}
{{ __('app.date') }}
@foreach($daily as $date => $row) @endforeach
{{ __('app.date') }}{{ __('sales.invoices') }}{{ __('app.total') }}
{{ $date }}{{ $row['count'] }}{{ money($row['total']) }}
@foreach($sales as $sale) @endforeach
{{ __('app.number') }}{{ __('app.date') }}{{ __('customers.customer') }}{{ __('app.branch') }}{{ __('app.total') }}
{{ $sale->number }} {{ $sale->date->format('Y-m-d') }} {{ $sale->customer->name ?? __('pos.walk_in') }} {{ $sale->branch->name ?? '' }} {{ money($sale->total) }}
@endsection