⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.94
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
hrms.dev-unit.com
/
resources
/
views
/
coupon
/
View File Name :
edit.blade.php
@php $chatgpt_key = App\Models\Utility::getValByName('chatgpt_key'); $chatgpt_enable = !empty($chatgpt_key); @endphp {{ Form::model($coupon, ['route' => ['coupons.update', $coupon->id], 'method' => 'PUT', 'class' => 'needs-validation', 'novalidate']) }} <div class="modal-body"> @if ($chatgpt_enable) <div class="text-end"> <a href="#" class="btn btn-sm btn-primary" data-size="medium" data-ajax-popup-over="true" data-url="{{ route('generate', ['coupon']) }}" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ __('Generate') }}" data-title="{{ __('Generate Content With AI') }}"> <i class="fas fa-robot"></i>{{ __(' Generate With AI') }} </a> </div> @endif <div class="row"> <div class="form-group"> {{ Form::label('name', __('Name'), ['class' => 'col-form-label']) }}<x-required></x-required> {{ Form::text('name', null, ['class' => 'form-control font-style', 'required' => 'required', 'placeholder' => __('Enter Name')]) }} </div> <div class="form-group col-md-6"> {{ Form::label('discount', __('Discount'), ['class' => 'col-form-label']) }}<x-required></x-required> {{ Form::number('discount', null, ['class' => 'form-control', 'required' => 'required', 'step' => '0.01', 'placeholder' => __('Enter Discount')]) }} <span class="small">{{ __('Note: Discount in Percentage') }}</span> </div> <div class="form-group col-md-6"> {{ Form::label('limit', __('Limit'), ['class' => 'col-form-label']) }}<x-required></x-required> {{ Form::number('limit', null, ['class' => 'form-control', 'required' => 'required', 'placeholder' => __('Enter Limit')]) }} </div> <div class="form-group"> {{ Form::label('code', __('Code'), ['class' => 'col-form-label']) }}<x-required></x-required> <div class="input-group"> {{ Form::text('code', null, ['class' => 'form-control', 'id' => 'auto-code', 'required' => 'required', 'placeholder' => __('Enter Code')]) }} <button class="btn btn-outline-primary" type="button" id="code-generate"><i class="fa fa-history pr-1"></i>{{ __(' Generate') }}</button> </div> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-light" data-bs-dismiss="modal">{{ __('Cancel') }}</button> <input type="submit" value="{{ __('Update') }}" class="btn btn-primary"> </div> {{ Form::close() }}