@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-4', '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-4', '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-6 col-sm-3', 'label'=>$form[$id]['label'], 'required'=>$form[$id]['req'], 'description'=>$form[$id]['descr'], 'hasError'=>$hasError ])
@if($form[$id]['input'])
@foreach($form[$id]['input'] as $value => $label)
{{ $label }}
@endforeach
@endif
@if($asset_array)
@foreach($asset_array as $key => $assets)
@foreach($assets as $key => $asset)
@if( $asset['status'] == 'active' || $asset['active'] == 'active')
{{ $asset['name'] }}
@endif
@endforeach
@endforeach
@endif
@endcomponent
@php $id = 'min_assets'; $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 = 'min_spend'; $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 = 'max_voucher_downloaded'; $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