@extends('layouts.main') @section('page-title') {{ __('Transaction Summary') }} @endsection @section('page-breadcrumb') {{ __('Report') }}, {{ __('Transaction Summary') }} @endsection @push('scripts') @endpush @section('page-action')
@stack('addButtonHook') @permission('bank account create') @endpermission
@endsection @section('content')
{{ Form::open(array('route' => array('transaction.index'),'method'=>'get','id'=>'transaction_report')) }}
{{ Form::label('start_month', __('Start Month'), ['class' => 'form-label']) }} {{Form::month('start_month',isset($_GET['start_month'])?$_GET['start_month']: date('Y-m'),array('class'=>'month-btn form-control','placeholder'=>'Start Month'))}}
{{ Form::label('end_month', __('End Month'), ['class' => 'form-label']) }} {{Form::month('end_month',isset($_GET['end_month'])?$_GET['end_month']:date('Y-m'),array('class'=>'month-btn form-control','placeholder'=>'Start Month'))}}
{{ Form::label('account', __('Account'), ['class' => 'form-label']) }} {{ Form::select('account', $account,isset($_GET['account'])?$_GET['account']:'', array('class' => 'form-control ','placeholder' => 'Select Account')) }}
{{ Form::label('category', __('Category'), ['class' => 'form-label']) }} {{ Form::select('category', $category,isset($_GET['category'])?$_GET['category']:'', array('class' => 'form-control ','placeholder' => 'Select Category')) }}
{{ 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
{{ currency_format_with_sym($account->total)}}
@endforeach
@foreach ($transactions as $transaction) @endforeach
{{__('Date')}} {{__('Account')}} {{__('Type')}} {{__('Category')}} {{__('Description')}} {{__('Amount')}}
{{ company_date_formate($transaction->date)}} @if(!empty($transaction) && $transaction->holder_name=='Cash') {{$transaction->holder_name}} @else {{!empty($transaction)?$transaction->bank_name.' '.$transaction->holder_name:'-'}} @endif {{ $transaction->type}} {{ $transaction->category}} {{ !empty($transaction->description)?$transaction->description:'-'}} {{currency_format_with_sym($transaction->amount)}}
@endsection