@extends('layouts.admin') @section('page-title') {{ __('Transaction Summary') }} @endsection @section('breadcrumb') @endsection @push('css-page') @endpush @push('script-page') {{-- --}} {{-- --}} {{-- --}} {{-- --}} @endpush @section('action-btn')
@endsection @section('content')
{{ Form::open(['route' => ['transaction.index'], 'method' => 'get', 'id' => 'transaction_report']) }}
{{ Form::label('start_month', __('Start Month'), ['class' => 'text-type']) }} {{ Form::month('start_month', isset($_GET['start_month']) ? $_GET['start_month'] : date('Y-m', strtotime("-5 month")), ['class' => 'month-btn form-control']) }}
{{ Form::label('end_month', __('End Month'), ['class' => 'text-type']) }} {{ Form::month('end_month', isset($_GET['end_month']) ? $_GET['end_month'] : date('Y-m'), ['class' => 'month-btn form-control']) }}
{{ Form::label('account', __('Account'), ['class' => 'text-type']) }} {{ Form::select('account', $account, isset($_GET['account']) ? $_GET['account'] : '', ['class' => 'form-control select']) }}
{{ Form::label('category', __('Category'), ['class' => 'text-type']) }} {{ Form::select('category', $category, isset($_GET['category']) ? $_GET['category'] : '', ['class' => 'form-control select']) }}
{{ Form::close() }}
{{ __('Report') }} :
{{ __('Transaction Summary') }}
@if ($filter['account'] != __('All'))
{{ __('Account') }} :
{{ $filter['account'] }}
@endif @if ($filter['category'] != __('All'))
{{ __('Category') }} :
{{ $filter['category'] }}
@endif
{{ __('Duration') }} :
{{ $filter['startDateRange'] . ' to ' . $filter['endDateRange'] }}
@foreach ($accounts as $account)
@if ($account->holder_name == 'Cash')
{{ $account->holder_name }}
@elseif(empty($account->holder_name))
{{ __('Stripe / Paypal') }}
@else
{{ $account->holder_name . ' - ' . $account->bank_name }}
@endif {{ \Auth::user()->priceFormat($account->total) }}
@endforeach
@foreach ($transactions as $transaction) @endforeach
{{ __('Date') }} {{ __('Account') }} {{ __('Type') }} {{ __('Category') }} {{ __('Description') }} {{ __('Amount') }}
{{ \Auth::user()->dateFormat($transaction->date) }} @if (!empty($transaction->bankAccount()) && $transaction->bankAccount()->holder_name == 'Cash') {{ $transaction->bankAccount()->holder_name }} @else {{ !empty($transaction->bankAccount()) ? $transaction->bankAccount()->bank_name . ' ' . $transaction->bankAccount()->holder_name : '-' }} @endif {{ $transaction->type }} {{ $transaction->category }} {{ !empty($transaction->description) ? $transaction->description : '-' }} {{ \Auth::user()->priceFormat($transaction->amount) }}
@endsection