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/button/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mcoil.corals.io/resources/views/admin/button/index.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::open(['method' => 'POST','route' => ['admin.button.update',$button->id], 'id'=>'frm_edit', 'class'=>'form','enctype'=>'multipart/form-data']) !!}
                <input type="hidden" name="id" value="{{$button->id}}">
                <div class="box-body"> 
    	            <div class="col-md-12">
                        <h3 class="bold">Update Button</h3>
                        <div class="row">
                            <div class="col-md-12">
                                <label for="title">Please update a button.</label>
                            </div>
                            <div class="col-md-4">
    	                        <div class="form-group">
    	                            <label for="title">Title <span class="text-danger">*</span></label>
    	                            <input type="text" name="title" id="title" placeholder="Title" class="form-control input-lg @if(!empty($button->title)) bg-success @endif" value="{{ $button->title }}">
    	                        </div>
    	                    </div>
                            <div class="col-md-4">
    	                        <div class="form-group">
    	                            <label for="link">Link <span class="text-danger">*</span></label>
    	                            <input type="text" name="link" id="link" placeholder="Link" class="form-control input-lg @if(!empty($button->link)) bg-success @endif" value="{{ $button->link }}">
    	                        </div>
    	                    </div>
                            <div class="col-md-4">
    	                        <div class="form-group">
    	                            <label for="target">Target</label>
    	                            @if(!empty($button->target))
            		                {!! Form::select('target', [
    	                                '_blank' => '_blank',
    	                                '_self' => '_self',
    	                                '_parent' => '_parent',
    	                                '_top' => '_top'
    	                            ], $button->target, array('placeholder' => 'Select Target', 'class' => 'form-control input-lg bg-success', 'id'=>'target')) !!}
            		                @else
            		                {!! Form::select('target', [
    	                                '_blank' => '_blank',
    	                                '_self' => '_self',
    	                                '_parent' => '_parent',
    	                                '_top' => '_top'
    	                            ], $button->target, array('placeholder' => 'Select Target', 'class' => 'form-control input-lg', 'id'=>'target')) !!}
            		                @endif
    	                        </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.button.list') }}" class="btn btn-lg btn-block btn-danger">Back</a>
                            </div>
                        </div>
			        </div>
                </div> 
                {!! Form::close() !!}
            </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').validate({
        rules: {
			title: { required: true },
			link: { required: true }
		},
		messages: {
			title: { required: 'Please enter a title' },
		    link: { required: 'Please enter a link' }
		}
    });
});
</script>
@endsection

Spamworldpro Mini