@extends('admin.layout')
@section('title', 'گزارش دوره ای درآمد')
@section('content')
|
today |
yesterday |
week |
last week |
month |
last month |
year |
total |
@foreach($incomes->gateways as $gateway)
@php($today = $incomes->today[$gateway] ?? 0)
@php($yesterday = $incomes->yesterday[$gateway] ?? 0)
@php($week = $incomes->week[$gateway] ?? 0)
@php($lastWeek = $incomes->lastWeek[$gateway] ?? 0)
@php($month = $incomes->month[$gateway] ?? 0)
@php($lastMonth = $incomes->lastMonth[$gateway] ?? 0)
@php($year = $incomes->year[$gateway] ?? 0)
@php($total = $incomes->total[$gateway] ?? 0)
{{$gateway}} |
{{$today}} |
{{$yesterday}} |
{{$week}} |
{{$lastWeek}} |
{{$month}} |
{{$lastMonth}} |
{{$year}} |
{{$total}} |
@endforeach
@php($totalToday = array_sum(array_values($incomes->today)))
@php($totalYesterday = array_sum(array_values($incomes->yesterday)))
@php($totalWeek = array_sum(array_values($incomes->week)))
@php($totalLastWeek = array_sum(array_values($incomes->lastWeek)))
@php($totalMonth = array_sum(array_values($incomes->month)))
@php($totalLastMonth = array_sum(array_values($incomes->lastMonth)))
@php($totalYear = array_sum(array_values($incomes->year)))
@php($totalTotal = array_sum(array_values($incomes->total)))
TOTAL |
{{$totalToday}} |
{{$totalYesterday}} |
{{$totalWeek}} |
{{$totalLastWeek}} |
{{$totalMonth}} |
{{$totalLastMonth}} |
{{$totalYear}} |
{{$totalTotal}} |
@endsection
@section('js-footer')
@endsection