@php use App\Models\User; use App\Models\Agent; use App\Models\Merchant; use App\Models\ApiProvider; use App\Models\CountryCurrency; use App\Models\Operator; use App\Models\Product; use App\Models\PriorityAPI; @endphp {{-- {{request()->query('product')??null}} --}}
{!! Form::label('type', __('Type')) !!} {!! Form::select('type', PriorityAPI::$types, null, ['class' => 'form-control select2m','placeholder' => 'Type',]) !!}
{!! Form::label('status', __('Status')) !!} {!! Form::select('status', PriorityAPI::$statuses, null, ['class' => 'form-control select2m','placeholder' => 'Status',]) !!}
{!! Form::label('starts_from', __('Starts From')) !!} {!! Form::date('starts_from', $forcePrice->starts_from??date('Y-m-d'), ['class' => 'form-control','id'=>'starts_from','required']) !!}
@push('scripts') @endpush
{!! Form::label('ends_on', __('Ends On')) !!} {!! Form::date('ends_on', $forcePrice->ends_on??date('Y-m-d'), ['class' => 'form-control','id'=>'ends_on','required']) !!}
@push('scripts') @endpush
{!! Form::label('api_name', __('Api Name')) !!} {!! Form::select('api_name', ApiProvider::get()->pluck('name','referance'), null, ['class' => 'form-control select2m','placeholder' => 'Api Name',]) !!}
{!! Form::label('details', __('Details')) !!} {!! Form::textarea('details', null, ['class' => 'form-control','placeholder' => 'Details','rows'=>'2']) !!}
{!! Form::label('parameters', __('Parameters')) !!} {!! Form::textarea('parameters', null, ['class' => 'form-control','placeholder' => 'Parameters','rows'=>'2']) !!}
{!! Form::label('priority', __('Priority')) !!} {!! Form::number('priority', null, ['class' => 'form-control','placeholder' => 'Priority','step'=>'any']) !!}
{!! Form::label('ranking', __('Ranking')) !!} {!! Form::number('ranking', null, ['class' => 'form-control','placeholder' => 'Ranking','step'=>'any']) !!}
{!! Form::label('country_currency_id', __('Country Currency Id')) !!} {!! Form::select('country_currency_id', CountryCurrency::get()->pluck('country_name','id'), null, ['class' => 'form-control select2m','placeholder' => 'Country Currency Id','step'=>'any',]) !!}
{!! Form::label('operator_id', __('Operator Id')) !!} {!! Form::select('operator_id', Operator::get()->pluck('name','id'), null, ['class' => 'form-control select2m','placeholder' => 'Operator Id','step'=>'any',]) !!}
{!! Form::label('product_id', __('Product Id')) !!} {!! Form::text('product_id', request()->query('product')??null, ['class' => 'form-control','placeholder' => 'Product Id','step'=>'any',]) !!}
{!! Form::label('user_id', __('User Id')) !!} {!! Form::select('user_id', User::selectRaw('CONCAT(name, "-", provider) AS concatenated_name, id') ->pluck('concatenated_name', 'id'), null, ['class' => 'form-control select2m','placeholder' => 'User Id','step'=>'any',]) !!}
{{--
{!! Form::label('merchant_id', __('Merchant Id')) !!} {!! Form::select('merchant_id', Merchant::get()->pluck('name','id'), null, ['class' => 'form-control select2m','placeholder' => 'Merchant Id','step'=>'any']) !!}
{!! Form::label('agent_id', __('Agent Id')) !!} {!! Form::select('agent_id', Agent::get()->pluck('name','id'), null, ['class' => 'form-control select2m','placeholder' => 'Agent Id','step'=>'any']) !!}
--}}
{!! Form::label('price', __('Price')) !!} {!! Form::number('price', null, ['class' => 'form-control','placeholder' => 'Price','step'=>'any','required']) !!}
{!! Form::label('price_min', __('Price Min')) !!} {!! Form::number('price_min', null, ['class' => 'form-control','placeholder' => 'Price Min','step'=>'any','required']) !!}
{!! Form::label('price_max', __('Price Max')) !!} {!! Form::number('price_max', null, ['class' => 'form-control','placeholder' => 'Price','step'=>'any','required']) !!}
{!! Form::label('percentage', __('Percentage')) !!} {!! Form::number('percentage', null, ['class' => 'form-control','placeholder' => 'Percentage','step'=>'any']) !!}
{!! Form::label('note', __('Note')) !!} {!! Form::textarea('note', null, ['class' => 'form-control','placeholder' => 'Note','rows'=>'2']) !!}
{!! Form::hidden('created_by', $priorityAPI->created_by??Auth::user()->id, ['class' => 'form-control','placeholder' => 'Created By','step'=>'any',]) !!} {!! Form::hidden('updated_by', Auth::user()->id, ['class' => 'form-control','placeholder' => 'Updated By','step'=>'any',]) !!}

{{ Form::button(' '.__('Submit'), ['type' => 'submit', 'class' => 'btn btn-primary '] ) }} {{ __("Cancel") }}
{{-- @include('includes.ckeditor') --}}