@php
use App\Models\User;
use App\Models\ApiProvider;
use App\Models\CountryCurrency;
use App\Models\Operator;
use App\Models\Product;
use App\Models\PriorityAPI;
@endphp
{!! 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', $holdAPI->starts_from??date('Y-m-d'), ['class' => 'form-control','id'=>'starts_from',]) !!}
@push('scripts')
@endpush
{!! Form::label('ends_on', __('Ends On')) !!}
{!! Form::date('ends_on', $holdAPI->ends_on??date('Y-m-d'), ['class' => 'form-control','id'=>'ends_on',]) !!}
@push('scripts')
@endpush
{!! Form::label('module_name', __('Module Name')) !!}
{!! Form::select('module_name', PriorityAPI::$modules, null, ['class' => 'form-control select2m','placeholder' => 'Module Name',]) !!}
{!! 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::number('product_id', 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('note', __('Note')) !!}
{!! Form::textarea('note', null, ['class' => 'form-control','placeholder' => 'Note','rows'=>'2',]) !!}
{!! Form::hidden('created_by', $holdAPI->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::label('created_by', __('Created By')) !!}
{!! Form::label('updated_by', __('Updated By')) !!}
--}}
{{-- @include('includes.ckeditor') --}}