@extends('layouts.admin') @section('page-title') {{ __('Expense Summary') }} @endsection @section('breadcrumb') @endsection @push('theme-script') @endpush @php if (isset($_GET['category']) && $_GET['period'] == 'yearly') { $chartArr = []; foreach ($chartExpenseArr as $innerArray) { foreach ($innerArray as $value) { $chartArr[] = $value; } } } else { $chartArr = $chartExpenseArr[0]; } @endphp @push('script-page') @endpush @section('action-btn')
@endsection @section('content')
{{ Form::open(['route' => ['report.expense.summary'], 'method' => 'GET', 'id' => 'report_expense_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('vender', __('Vender'), ['class' => 'text-type']) }} {{ Form::select('vender', $vender, isset($_GET['vender']) ? $_GET['vender'] : '', ['class' => 'form-control']) }}
{{ Form::close() }}
{{ __('Report') }} :
{{ __('Expense Summary') }}
@if ($filter['category'] != __('All'))
{{ __('Category') }} :
{{ $filter['category'] }}
@endif @if ($filter['vender'] != __('All'))
{{ __('Vendor') }} :
{{ $filter['vender'] }}
@endif
{{ __('Duration') }} :
{{ $filter['startDateRange'] . ' to ' . $filter['endDateRange'] }}
{{-- @if ($periods['yearly'] == 'Yearly') @else @endif --}} @foreach ($monthList as $month) @endforeach @foreach ($expenseArr as $i => $expense) @foreach ($expense['data'] as $j => $data) @endforeach @endforeach @foreach ($billArray as $i => $bill) @foreach ($bill['data'] as $j => $data) @endforeach @endforeach @foreach ($chartExpenseArr as $i => $expense) @foreach ($expense as $value) @endforeach @endforeach
{{ __('Category') }}{{ __('Year') }}{{ __('Category') }}{{ $month }}
{{ __('Payment :') }}
{{ $expense['category'] }}{{ \Auth::user()->priceFormat($data) }}
{{ __('Bill :') }}
{{ $bill['category'] }}{{ \Auth::user()->priceFormat($data) }}
{{ __('Expense = Payment + Bill :') }}
{{ __('Total') }}
{{ \Auth::user()->priceFormat($value) }}
@endsection