@extends('layouts.admin') @section('page-title') {{ __('Income Summary') }} @endsection @section('breadcrumb') @endsection @push('theme-script') @endpush @php if (isset($_GET['category']) && $_GET['period'] == 'yearly') { $chartArr = []; foreach ($chartIncomeArr as $innerArray) { foreach ($innerArray as $value) { $chartArr[] = $value; } } } else { $chartArr = $chartIncomeArr[0]; } @endphp @push('script-page') @endpush @section('action-btn')
@endsection @section('content')
{{ Form::open(['route' => ['report.income.summary'], 'method' => 'GET', 'id' => 'report_income_summary']) }}
@if (isset($_GET['period']) && $_GET['period'] == 'yearly')
{{ Form::label('period', __('Period'), ['class' => 'text-type']) }} {{ Form::select('period', $periods, isset($_GET['period']) ? $_GET['period'] : '', ['class' => 'form-control period', 'id' => 'period-select']) }}
@else
{{ Form::label('period', __('Period'), ['class' => 'text-type']) }} {{ Form::select('period', $periods, isset($_GET['period']) ? $_GET['period'] : '', ['class' => 'form-control period', 'id' => 'period-select']) }}
{{ Form::label('year', __('Year'), ['class' => 'text-type']) }} {{ Form::select('year', $yearList, isset($_GET['year']) ? $_GET['year'] : '', ['class' => 'form-control']) }}
@endif
{{ Form::label('category', __('Category'), ['class' => 'text-type']) }} {{ Form::select('category', $category, isset($_GET['category']) ? $_GET['category'] : '', ['class' => 'form-control']) }}
{{ Form::label('customer', __('Customer'), ['class' => 'text-type']) }} {{ Form::select('customer', $customer, isset($_GET['customer']) ? $_GET['customer'] : '', ['class' => 'form-control']) }}
{{ Form::close() }}
{{ __('Report') }} :
{{ __('Income Summary') }}
@if ($filter['category'] != __('All'))
{{ __('Category') }} :
{{ $filter['category'] }}
@endif @if ($filter['customer'] != __('All'))
{{ __('Customer') }} :
{{ $filter['customer'] }}
@endif
{{ __('Duration') }} :
{{ $filter['startDateRange'] . ' to ' . $filter['endDateRange'] }}
@foreach ($monthList as $month) @endforeach @foreach ($incomeArr as $i => $income) @foreach ($income['data'] as $j => $data) @endforeach @endforeach @foreach ($invoiceArray as $i => $invoice) @foreach ($invoice['data'] as $j => $data) @endforeach @endforeach @foreach ($chartIncomeArr as $i => $income) @foreach ($income as $value) @endforeach @endforeach
{{ __('Category') }}{{ $month }}
{{ __('Revenue :') }}
{{ $income['category'] }}{{ \Auth::user()->priceFormat($data) }}
{{ __('Invoice :') }}
{{ $invoice['category'] }}{{ \Auth::user()->priceFormat($data) }}
{{ __('Income = Revenue + Invoice :') }}
{{ __('Total') }}
{{ \Auth::user()->priceFormat($value) }}
@endsection