@extends('layouts.admin') @section('style') @endsection @section('script') @parent @php $asset_approve_fields = [ 'approve_outlet'=> true, 'approve_product'=> true, 'approve_txn_amt'=> true, 'approve_comments'=> true, ] @endphp @endSection @section('content') @php $modules = getModuleActivationStatus(); $card_tb = [ //'receipt_uid'=>'Asset ID', //'user_id'=>'User ID', 'user_uid'=>'User UID', 'name'=>'Name', //'approved challenges'=>'Approved Challenges', 'vouchers'=>'Vouchers', 'merchants'=>'Store/ Outlet', 'module'=>'Challenge', 'transaction_amount'=>'Spend ($)', 'products'=>'Products', //'status'=>'Status', //'error'=>'Error', 'created_at'=>'Uploaded', 'reviewed_at' => 'Reviewed At', 'reviewed_by' => 'Reviewed By', 'status_reason' => 'Remarks', 'question_title' => 'Survey Title', 'answer_text' => 'Survey Answer', 'rejection_reasons' => 'Rejection Reason(s)', 'qualifying_spend' => 'SKU Qualifying Spend', ]; if (isset($modules['dsc']) && $modules['dsc'] === true) { $card_tb['grid_position'] = 'Grid Position'; $card_tb['user_card_no'] = 'User Stamp Card No.'; } $popup_tb = [ //'receipt_uid'=>'Asset ID', //'user_id'=>'User ID', //'products'=>'Products', 'user_uid'=>'User UID', 'merchants'=>'Store/ Outlet', 'transaction_amount'=>'Spend ($)', 'products'=>'Products', 'module'=>'Challenge', //'status'=>'Status', //'error'=>'Error', 'created_at'=>'Uploaded', 'reviewed_at' => 'Reviewed At', 'reviewed_by' => 'Reviewed By', 'status_reason' => 'Remarks', 'question_title' => 'Survey Title', 'answer_text' => 'Survey Answer', 'rejection_reasons' => 'Rejection Reason(s)', ]; @endphp @component('admin.components.tabs')
@php $form = config('admin.receipt_approval_filter') @endphp @php $id = 'order_by'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', [ 'class'=> 'col-6 col-sm-2', 'label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @endcomponent @php $id = 'user_id'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', [ 'class'=> 'col-6 col-sm-4', 'label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @endcomponent @php $id = 'date_from'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', [ 'class'=> 'col-6 col-sm-3', 'label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @endcomponent @php $id = 'date_to'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', [ 'class'=> 'col-6 col-sm-3', 'label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @endcomponent @php $id = 'receipt_status'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', [ 'class'=> 'col-6 col-sm-2', 'label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @endcomponent @php $id = 'receipt_challenge'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', ['class'=> 'col-6 col-sm-4', 'help'=> $form[$id]['help'], 'label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @endcomponent @php $id = 'store_name'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', [ 'class'=> 'col-12 col-sm-6', 'label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @slot('prepend') @php $id = 'store_name_type'; $hasError = $errors->has($id) @endphp @endslot @endcomponent @php $id = 'receipt_uid'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', ['class'=> 'col-6 col-sm-6', 'help'=> $form[$id]['help'], 'label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@endcomponent
ID:
@foreach( $card_tb as $id => $title_val ) @endforeach
{{$title_val}}

No Assets Found
@endcomponent @component('components.utility.template_popup', ['id' => 'receipt_validate_popup', 'custom_dialog_class' => 'modal-xl']) @slot('slot_header') @endslot @slot('slot')
@foreach( $popup_tb as $id => $title_val ) @endforeach
{{$title_val}}
@php $id = 'new_tag_user'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', [ 'class'=> 'col-12 px-0', 'label'=>$form[$id]['label'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@endcomponent

{{-- The receipt will only be approved upon validation--}}
@php $id = 'approve_outlet'; $hasError = $errors->has($id) @endphp @if($asset_approve_fields[$id])
@component('admin.components.form_field', [ 'class'=> 'col-12 px-0', 'label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @endcomponent
@endif @php $id = 'approve_product'; $hasError = $errors->has($id) @endphp @if($asset_approve_fields[$id])
@component('admin.components.form_field', [ 'class'=> 'col-12 px-0', 'label'=>$form[$id]['label'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
Product SKU Price Quantity Action
@endcomponent
@endif @php $id = 'approve_txn_amt'; $hasError = $errors->has($id) @endphp @if($asset_approve_fields[$id]) @component('admin.components.form_field', [ 'class'=> 'col-12 px-0', 'label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @endcomponent @endif @php $id = 'approve_comments'; $hasError = $errors->has($id) @endphp @if($asset_approve_fields[$id]) @component('admin.components.form_field', [ 'class'=> 'col-12 px-0', 'label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ]) @endcomponent @endif @php $id = 'new_tag_receipt'; $hasError = $errors->has($id) @endphp @component('admin.components.form_field', [ 'class'=> 'col-12 px-0', 'label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@endcomponent @if(config('smart_receipt.settings.has_require_transaction_date')) @component('admin.components.form_field', [ 'class'=> 'col-12 px-0', 'label'=> 'Transaction Date', 'required'=> true, 'description'=> '',]) @endcomponent @endif @if(config('smart_receipt.settings.has_require_outlet_name')) @component('admin.components.form_field', [ 'class'=> 'col-12 px-0', 'label'=> 'Outlet Name', 'required'=> true, 'description'=> '',]) @endcomponent @endif @if(config('smart_receipt.settings.has_require_payment_mode')) @component('admin.components.form_field', [ 'class'=> 'col-12 px-0', 'label'=> 'Payment Mode', 'required'=> true, 'description'=> '',]) @endcomponent @endif
Provisioned Rewards
Estimated Rewards
@endslot @slot('slot_footer')
Reject Approve
@endslot @endcomponent @component('components.utility.modal_confirmation') @slot('slot_header') Confirm @endslot @slot('slot_body_info') Please confirm if you would like to this asset? @endslot @endcomponent @endsection