Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mcoil.corals.io/resources/views/admin/attributes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mcoil.corals.io/resources/views/admin/attributes/edit.blade.php
@extends('layouts.admin.app')
@section('content')
<div class="row">
    <div class="col-md-12">
        <section class="content">
        @include('layouts.errors-and-messages')
            <div class="box">
                <form action="{{ route('admin.attributes.update', $attribute->id) }}" method="post" id="frm_edit_attribute" class="form" autocomplete="off">
                    <div class="box-body">
                        <div class="col-md-12">
                            <h3 class="bold">Edit Attribute <small>- for what you sell</small></h3>
                            {{ csrf_field() }}
                            <div class="row">
                                <input type="hidden" name="_method" value="put">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label for="name">Enter the Attribute Name <span class="text-danger">*</span></label>
                                        <input type="text" name="name" id="name" placeholder="Attribute name" class="form-control input-lg" value="{!! $attribute->name  !!}">
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <label for="vtype">Choose the Type <span class="text-danger">*</span></label>
            				            <select class="form-control custom-select input-lg" name="vtype" id="vtype" required="">
            				            	<option value="" disabled="">Select Type</option>
            				            	<option value="1" @if($attribute->vtype=='1') selected @endif>Oil</option>
            			                	<!--<option value="2" @if($attribute->vtype=='2') selected @endif>Product</option>-->
            			                </select>
            		                </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-6">
                                    <button type="submit" class="btn btn-lg btn-block btn-success">Update</button>
                                </div>
                                <div class="col-md-6">
                                    <a href="{{ route('admin.attributes.index') }}" class="btn btn-lg btn-block btn-danger">Back</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
        </section>
    </div>
</div>
@endsection
@section('js')
<script src="{{ asset('https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.1/jquery.validate.min.js') }}"></script>
<script type="text/javascript">
$(document).ready(function () {
    $('#frm_edit_attribute').validate({
        rules: {
			name: { required: true },
			vtype: { required: true }
		},
		messages: {
			name: { required: 'Please enter an attribute name' },
			vtype: { required: 'Please choose a type' }
		}
    });
});
</script>
@endsection

Spamworldpro Mini