@extends('layouts.admin.app')
@section('title', translate('Earning Report'))
@push('css_or_js')
@endpush
@section('content')
@php
$sold = [];
for ($i = 1; $i <= 12; $i++) {
$from = date('Y-' . $i . '-01');
$to = date('Y-' . $i . '-30');
$sold[$i] = Helpers::set_price(
\App\Model\Order::where(['order_status' => 'delivered'])
->whereBetween('created_at', [$from, $to])
->sum('order_amount'),
);
}
@endphp
@php
$tax = [];
for ($i = 1; $i <= 12; $i++) {
$from = date('Y-' . $i . '-01');
$to = date('Y-' . $i . '-30');
$tax[$i] = \App\Model\Order::where(['order_status' => 'delivered'])
->whereBetween('created_at', [$from, $to])
->sum('total_tax_amount');
}
@endphp
@endsection
@push('script')
@endpush
@push('script_2')
{{-- --}}
{{-- --}}
@endpush