@extends('layouts.app')
@section('title', __('lang_v1.sell_payment_report'))
@section('content')
@php $custom_labels = json_decode(session('business.custom_labels'), true); @endphp
@component('components.filters', ['title' => __('report.filters')])
{!! Form::open(['url' => '#', 'method' => 'get', 'id' => 'sell_payment_report_form' ]) !!}
{!! Form::label('spr_date_filter', __('report.date_range') . ':') !!}
{!! Form::text('date_range', null, ['placeholder' => __('lang_v1.select_a_date_range'), 'class' => 'form-control', 'id' => 'spr_date_filter', 'readonly']); !!}
{!! Form::label('spr_age_filter', __('lang_v1.age') . ':') !!}
{!! Form::select('age_filter', [
'0-15' => '0 - 15 ' . __('lang_v1.days'),
'16-30' => '16 - 30 ' . __('lang_v1.days'),
'31-45' => '31 - 45 ' . __('lang_v1.days'),
'46-60' => '46 - 60 ' . __('lang_v1.days'),
'61-75' => '61 - 75 ' . __('lang_v1.days'),
'76-90' => '76 - 90 ' . __('lang_v1.days'),
'90+' => '90+ ' . __('lang_v1.days'),
], null, ['class' => 'form-control select2', 'style' => 'width:100%', 'placeholder' => __('messages.all'), 'id' => 'spr_age_filter']); !!}
@if(!empty($custom_labels['sell']['custom_field_1']) || !empty($custom_labels['sell']['custom_field_2']) || !empty($custom_labels['sell']['custom_field_3']) || !empty($custom_labels['sell']['custom_field_4']))
@if(!empty($custom_labels['sell']['custom_field_1']))
{!! Form::label('spr_custom_field_1', $custom_labels['sell']['custom_field_1'] . ':') !!}
{!! Form::text('custom_field_1', null, ['class' => 'form-control', 'id' => 'spr_custom_field_1', 'placeholder' => $custom_labels['sell']['custom_field_1']]); !!}
@endif
@if(!empty($custom_labels['sell']['custom_field_2']))
{!! Form::label('spr_custom_field_2', $custom_labels['sell']['custom_field_2'] . ':') !!}
{!! Form::text('custom_field_2', null, ['class' => 'form-control', 'id' => 'spr_custom_field_2', 'placeholder' => $custom_labels['sell']['custom_field_2']]); !!}
@endif
@if(!empty($custom_labels['sell']['custom_field_3']))
{!! Form::label('spr_custom_field_3', $custom_labels['sell']['custom_field_3'] . ':') !!}
{!! Form::text('custom_field_3', null, ['class' => 'form-control', 'id' => 'spr_custom_field_3', 'placeholder' => $custom_labels['sell']['custom_field_3']]); !!}
@endif
@if(!empty($custom_labels['sell']['custom_field_4']))
{!! Form::label('spr_custom_field_4', $custom_labels['sell']['custom_field_4'] . ':') !!}
{!! Form::text('custom_field_4', null, ['class' => 'form-control', 'id' => 'spr_custom_field_4', 'placeholder' => $custom_labels['sell']['custom_field_4']]); !!}
@endif
@endif
{!! Form::close() !!}
@endcomponent
@component('components.widget', ['class' => 'box-primary'])
| |
@lang('purchase.ref_no') |
@lang('lang_v1.paid_on') |
@lang('sale.amount') |
@lang('lang_v1.age') |
@lang('contact.customer') |
@lang('lang_v1.contact_id') |
@lang('lang_v1.customer_group') |
@lang('lang_v1.payment_method') |
@lang('sale.sale') |
@lang('report.user') |
{{ $custom_labels['sell']['custom_field_1'] ?? '' }} |
{{ $custom_labels['sell']['custom_field_2'] ?? '' }} |
{{ $custom_labels['sell']['custom_field_3'] ?? '' }} |
{{ $custom_labels['sell']['custom_field_4'] ?? '' }} |
@lang('messages.action') |
@endcomponent
@endsection
@section('javascript')
@endsection