@extends('layouts.admin') @section('page-title') {{__('Account Statement Summary')}} @endsection @push('script-page') @endpush @section('breadcrumb') @endsection @section('action-btn')
{{-- --}}
@endsection @section('content')
{{ Form::open(array('route' => array('report.account.statement'),'method'=>'get','id'=>'report_account')) }}
{{ 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'))}}
{{ Form::label('end_month', __('End Month'),['class'=>'form-label'])}} {{Form::month('end_month',isset($_GET['end_month'])?$_GET['end_month']:date('Y-m', strtotime("-5 month")),array('class'=>'month-btn form-control'))}}
{{ Form::label('account', __('Account'),['class'=>'form-label'])}} {{Form::select('account', $account,isset($_GET['account'])?$_GET['account']:'', array('class' => 'form-control select')) }}
{{ Form::label('type', __('Category'),['class'=>'form-label'])}} {{ Form::select('type',$types,isset($_GET['type'])?$_GET['type']:'', array('class' => 'form-control select')) }}
{{ Form::close() }}
{{__('Report')}} :
{{__('Account Statement Summary')}}
@if($filter['account']!=__('All'))
{{__('Account')}} :
{{$filter['account']}}
@endif @if($filter['type']!=__('All'))
{{__('Type')}} :
{{$filter['type']}}
@endif
{{__('Duration')}} :
{{$filter['startDateRange'].' to '.$filter['endDateRange']}}
@if(!empty($reportData['revenueAccounts']))
@foreach($reportData['revenueAccounts'] 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
@endif @if(!empty($reportData['paymentAccounts']))
@foreach($reportData['paymentAccounts'] 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
@endif
@if(!empty($reportData['revenues'])) @foreach ($reportData['revenues'] as $revenue) @endforeach @endif @if(!empty($reportData['payments'])) @foreach ($reportData['payments'] as $payments) @endforeach @endif
{{__('Date')}} {{__('Amount')}} {{__('Description')}}
{{ Auth::user()->dateFormat($revenue->date) }} {{ Auth::user()->priceFormat($revenue->amount) }} {{$revenue->description}}
{{ Auth::user()->dateFormat($payments->date) }} {{ Auth::user()->priceFormat($payments->amount) }} {{!empty($payments->description)?$payments->description:'-'}}
@endsection