[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: edit.blade.php
@extends('layouts.app') @section('content') <div class="row"> <div class="{{ $alert_col }}"> <div class="card"> <div class="card-header"> <span class="panel-title">{{ _lang('Update Payout Method') }}</span> </div> <div class="card-body"> <form method="post" class="validate" autocomplete="off" action="{{ route('affiliate_payout_methods.update', $id) }}" enctype="multipart/form-data"> {{ csrf_field()}} <input name="_method" type="hidden" value="PATCH"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label class="control-label">{{ _lang('Name') }}</label> <input type="text" class="form-control" name="name" value="{{ $payoutmethod->name }}" required> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label">{{ _lang('Status') }}</label> <select class="form-control auto-select" data-selected="{{ $payoutmethod->status }}" name="status" required> <option value="1">{{ _lang('Active') }}</option> <option value="0">{{ _lang('Disabled') }}</option> </select> </div> </div> <div class="col-md-12"> <div class="form-group"> <label class="control-label">{{ _lang('Image') }}</label> <input type="file" class="form-control dropify" name="image" data-max-file-size="2M" data-allowed-file-extensions="png jpg jpeg" data-default-file="{{ asset('public/uploads/media/'.$payoutmethod->image) }}"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label">{{ _lang('Fixed Charge') }}</label> <input type="text" class="form-control float-field" name="fixed_charge" value="{{ $payoutmethod->fixed_charge }}"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label class="control-label">{{ _lang('Charge In Percentage') }}</label> <input type="text" class="form-control float-field" name="charge_in_percentage" value="{{ $payoutmethod->charge_in_percentage }}"> </div> </div> <div class="col-md-12"> <div class="form-group"> <label class="control-label">{{ _lang('Instructions') }}</label> <textarea class="form-control instructions" name="instructions">{{ $payoutmethod->instructions }}</textarea> </div> </div> <div class="col-md-12 mt-3"> <div class="d-flex align-items-center justify-content-between"> <h5 class="mb-0"><b>{{ _lang('Payout Details') }}</b></h5> <button type="button" id="add-new-field" class="btn btn-outline-primary btn-sm"><i class="fas fa-plus mr-1"></i>{{ _lang('Add New Field') }}</button> </div> <hr> <div class="row" id="custom_fields"> <div class="col-md-12 mt-4"> <table class="table table-bordered" id="form-fields"> <thead class="bg-light"> <th class="text-dark">{{ _lang('Field Name') }}</th> <th class="text-dark">{{ _lang('Field Type') }}</th> <th class="text-dark">{{ _lang('Validation') }}</th> <th class="text-dark">{{ _lang('File Max Size (MB)') }}</th> <th class="text-center text-dark">{{ _lang('Action') }}</th> </thead> <tbody> @if($payoutmethod->parameters) @foreach($payoutmethod->parameters as $form_field) <tr class="row-data"> <td><input type="text" name="field_name[]" class="form-control" placeholder="Field Name" value="{{ $form_field->field_label }}" required></td> <td> <select name="field_type[]" class="form-control auto-select" data-selected="{{ $form_field->field_type }}" required> <option value="file">File (PNG,JPG,PDF)</option> <option value="text">Textbox</option> <option value="number">Number</option> <option value="textarea">Textarea</option> </select> </td> <td> <select name="validation[]" class="form-control auto-select" data-selected="{{ $form_field->validation }}" required> <option value="required">Required</option> <option value="nullable">No Required</option> </select> </td> <td><input type="number" name="max_size[]" class="form-control" placeholder="2" value="{{ $form_field->max_size }}" required></td> <td class="text-center"><button type="button" class="btn btn-danger btn-xs btn-remove-row"><i class="far fa-trash-alt"></i></button></td> </tr> @endforeach @endif </tbody> </table> </div> </div> </div> <div class="col-md-12 mt-2"> <div class="form-group"> <button type="submit" class="btn btn-primary"><i class="ti-check-box mr-2"></i> {{ _lang('Update') }}</button> </div> </div> </div> </form> </div> </div> </div> </div> @endsection @section('js-script') <script> (function ($) { "use strict"; $(document).on('click', '#add-new-field', function () { var rowData = `<tr class="row-data"> <td><input type="text" name="field_name[]" class="form-control" placeholder="Field Name" required></td> <td> <select name="field_type[]" class="form-control" required> <option value="file">File (PNG,JPG,PDF)</option> <option value="text">Textbox</option> <option value="number">Number</option> <option value="textarea">Textarea</option> </select> </td> <td> <select name="validation[]" class="form-control" required> <option value="required">Required</option> <option value="nullable">No Required</option> </select> </td> <td><input type="number" name="max_size[]" class="form-control" placeholder="2" value="2" required></td> <td class="text-center"><button type="button" class="btn btn-danger btn-xs btn-remove-row"><i class="far fa-trash-alt"></i></button></td> </tr>`; $('#form-fields tbody').append(rowData); }); $(document).on('click', '.btn-remove-row', function () { $(this).closest('.row-data').remove(); }); $('.instructions').summernote({ tabsize: 4, height: 250, toolbar: [ ['style', ['bold', 'italic', 'underline', 'clear']], ['font', ['strikethrough']], ['fontsize', ['fontsize']], ['color', ['color']], ['para', ['ul', 'ol', 'paragraph']], ['height', ['height']], ['insert', ['link', 'table']], ] }); })(jQuery); </script> @endsection
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.64 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002