![]() 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/creator/ |
@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::model($pages_content,['method' => 'POST','route' => ['admin.creator.update',$pages_content->id], 'id' => 'frm_add', 'class'=>'form','enctype'=>'multipart/form-data']) !!} <input type="hidden" name="old_button_1" value="{{($button_1!='')? $button_1->id:null}}"> <input type="hidden" name="old_button_2" value="{{($button_2!='')? $button_2->id:null}}"> <input type="hidden" name="old_button_3" value="{{($button_3!='')? $button_3->id:null}}"> <div class="box-body"> <div class="col-md-12"> <h3 class="bold">Page Edit <small>- for creating or editing your pages settings</small></h3> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="title">Title <span class="text-danger">*</span></label> @if(!empty($pages_content->title)) {!! Form::text('title', $pages_content->title, array('placeholder' => 'Title', 'class' => 'form-control input-lg bg-success', 'id'=>'title')) !!} @else {!! Form::text('title', $pages_content->title, array('placeholder' => 'Title', 'class' => 'form-control input-lg', 'id'=>'title')) !!} @endif </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="title">Slug <span class="text-danger">*</span></label> @if($pages_content->id == '1' || $pages_content->id == '27' || $pages_content->id == '45') {!! Form::text('slug', $pages_content->slug, array('placeholder' => 'Slug', 'class' => 'form-control input-lg', 'id'=>'slug', 'disabled'=>'disabled')) !!} <input type="hidden" id="slug" name="slug" value="{{ $pages_content->slug }}" /> @elseif(!empty($pages_content->slug)) {!! Form::text('slug', $pages_content->slug, array('placeholder' => 'Slug', 'class' => 'form-control input-lg bg-success', 'id'=>'slug')) !!} @else {!! Form::text('slug', $pages_content->slug, array('placeholder' => 'Slug', 'class' => 'form-control input-lg', 'id'=>'slug')) !!} @endif </div> </div> </div> <div class="row"> <div class="col-md-12"> <h3 class="bold">SEO <small>- settings for search engines</small></h3> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="meta_title">Meta title (50 to 70 characters long)</label> @if(!empty($pages_content->meta_title)) {!! Form::text('meta_title', $pages_content->meta_title, array('placeholder' => 'meta title','class' => 'form-control input-lg bg-success','id'=>'meta_title')) !!} @else {!! Form::text('meta_title', $pages_content->meta_title, array('placeholder' => 'meta title','class' => 'form-control input-lg','id'=>'meta_title')) !!} @endif </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="meta_keywords">Meta Keywords (lowercase separated by commas)</label> @if(!empty($pages_content->meta_keywords)) {!! Form::text('meta_keywords', $pages_content->meta_keywords, array('placeholder' => 'meta keyword', 'class' => 'form-control input-lg bg-success','id'=>'meta_keywords')) !!} @else {!! Form::text('meta_keywords', $pages_content->meta_keywords, array('placeholder' => 'meta keyword', 'class' => 'form-control input-lg','id'=>'meta_keywords')) !!} @endif </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group"> <label for="meta_description">Meta Description (140 to 180 characters long)</label> @if(!empty($pages_content->meta_description)) {!! Form::textarea('meta_description', $pages_content->meta_description, array('placeholder' => 'meta description', 'class' => 'form-control input-lg bg-success', 'id'=>'meta_description')) !!} @else {!! Form::textarea('meta_description', $pages_content->meta_description, array('placeholder' => 'meta description', 'class' => 'form-control input-lg', 'id'=>'meta_description')) !!} @endif </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="noindex">Meta Robots <span class="text-danger">*</span></label> <select name="noindex" id="noindex" class="form-control custom-select input-lg @if(!empty($pages_content->noindex)) bg-success @endif"> <option value="index, follow" @if($pages_content->noindex == 'index, follow')selected="" @endif>index, follow</option> <option value="noindex, nofollow" @if($pages_content->noindex == 'noindex, nofollow')selected="" @endif>noindex, nofollow</option> <option value="noindex, follow" @if($pages_content->noindex == 'noindex, follow')selected="" @endif>noindex, follow</option> <option value="index, nofollow" @if($pages_content->noindex == 'index, nofollow')selected="" @endif>index, nofollow</option> </select> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="meta_og_title">og:title</label> @if(!empty($pages_content->meta_og_title)) {!! Form::text('meta_og_title', $pages_content->meta_og_title, array('placeholder' => 'og:title','class' => 'form-control input-lg bg-success','id'=>'meta_og_title')) !!} @else {!! Form::text('meta_og_title', $pages_content->meta_og_title, array('placeholder' => 'og:title','class' => 'form-control input-lg','id'=>'meta_og_title')) !!} @endif </div> </div> </div> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="meta_og_description">og:description</label> @if(!empty($pages_content->meta_og_description)) {!! Form::text('meta_og_description', $pages_content->meta_og_description, array('placeholder' => 'og:title','class' => 'form-control input-lg bg-success','id'=>'meta_og_description')) !!} @else {!! Form::text('meta_og_description', $pages_content->meta_og_description, array('placeholder' => 'og:title','class' => 'form-control input-lg','id'=>'meta_og_description')) !!} @endif </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="meta_og_image">og:image</label> <input type="file" name="meta_og_image" id="meta_og_image" class="form-control input-lg @if(!empty($pages_content->meta_og_image)) bg-success @endif" value="{{$pages_content->meta_og_image}}"> <input type="hidden" name="meta_og_image_old" id="meta_og_image_old" class="form-control input-lg" value="{{$pages_content->meta_og_image}}"> @if (!empty($pages_content->meta_og_image)) <br><img class="img-fluid" src="{{ URL::to('/') }}/public/img/images_uploaded/{{$pages_content->meta_og_image}}" /> @endif </div> </div> </div> <div class="row"> <div class="col-md-12"> <h3 class="bold">Connected Page Modules <small>- blocks to include for this page</small></h3> </div> </div> <div class="row"> <div class="col-md-6"> @if($pages_content->id == '45') <div class="form-group"> <label for="banner1">Top - Banner</label> {!! Form::select('banner1', $select_banner, null,['class' => 'form-control custom-select input-lg', 'disabled' => 'disabled']) !!} </div> @elseif(isset($banner_1)) <div class="form-group"> <label for="banner1">Top - Banner</label> <input type="hidden" name="old_banner1" value="{{$banner_1->id}}"> {!! Form::select('banner1', $select_banner, $banner_1->id, ['class' => 'form-control custom-select input-lg bg-success']) !!} </div> @else <div class="form-group"> <label for="banner1">Top - Banner</label> {!! Form::select('banner1', $select_banner, null,['class' => 'form-control custom-select input-lg']) !!} </div> @endif </div> <div class="col-md-6"> @if($pages_content->id == '45') <div class="form-group"> <label for="text_box1">Top - Text Box</label> {!! Form::select('text_box1', $select_textbox, null, ['class' => 'form-control custom-select input-lg', 'disabled' => 'disabled']) !!} </div> @elseif(isset($text_box1)) <div class="form-group"> <label for="text_box1">Top - Text Box</label> <input type="hidden" name="old_text_box1" value="{{$text_box1->id}}"> {!! Form::select('text_box1', $select_textbox, $text_box1->id, ['class' => 'form-control custom-select input-lg bg-success']) !!} </div> @else <div class="form-group"> <label for="text_box1">Top - Text Box</label> {!! Form::select('text_box1', $select_textbox, null, ['class' => 'form-control custom-select input-lg']) !!} </div> @endif </div> </div> <div class="row"> <div class="col-md-6"> @if($pages_content->id == '45') <div class="form-group"> <label for="banner2">Middle - Banner</label> {!! Form::select('banner2', $select_banner, null,['class' => 'form-control custom-select input-lg', 'disabled' => 'disabled']) !!} </div> @elseif(isset($banner_2)) <div class="form-group"> <label for="banner2">Middle - Banner</label> <input type="hidden" name="old_banner2" value="{{$banner_2->id}}"> {!! Form::select('banner2', $select_banner, $banner_2->id, ['class' => 'form-control custom-select input-lg bg-success']) !!} </div> @else <div class="form-group"> <label for="banner2">Middle - Banner</label> {!! Form::select('banner2', $select_banner, null,['class' => 'form-control custom-select input-lg']) !!} </div> @endif </div> <div class="col-md-6"> @if($pages_content->id == '45') <div class="form-group"> <label for="text_box2">Middle - Text Box</label> {!! Form::select('text_box2', $select_textbox, null,['class' => 'form-control custom-select input-lg', 'disabled' => 'disabled']) !!} </div> @elseif(isset($text_box2)) <div class="form-group"> <label for="text_box2">Middle - Text Box</label> <input type="hidden" name="old_text_box2" value="{{$text_box2->id}}"> {!! Form::select('text_box2', $select_textbox, $text_box2->id, ['class' => 'form-control custom-select input-lg bg-success']) !!} </div> @else <div class="form-group"> <label for="text_box2">Middle - Text Box</label> {!! Form::select('text_box2', $select_textbox, null,['class' => 'form-control custom-select input-lg']) !!} </div> @endif </div> </div> <div class="row"> <div class="col-md-6"> @if($pages_content->id == '45') <div class="form-group"> <label for="serviceBox">Service Box 1</label> {!! Form::select('service_box1', $service_items, null, ['class' => 'form-control custom-select input-lg', 'disabled' => 'disabled']) !!} </div> @elseif(isset($service_box1)) <div class="form-group"> <label for="serviceBox">Service Box 1</label> <input type="hidden" name="old_service_box1" value="{{$service_box1->id}}"> {!! Form::select('service_box1', $service_items, $service_box1->id, ['class' => 'form-control custom-select input-lg bg-success']) !!} </div> @else <div class="form-group"> <label for="serviceBox">Service Box 1</label> {!! Form::select('service_box1', $service_items, null, ['class' => 'form-control custom-select input-lg']) !!} </div> @endif </div> <div class="col-md-6"> @if($pages_content->id == '45') <div class="form-group"> <label for="serviceBox">Service Box 2</label> {!! Form::select('service_box2', $service_items, null, ['class' => 'form-control custom-select input-lg', 'disabled' => 'disabled']) !!} </div> @elseif(isset($service_box2)) <div class="form-group"> <label for="serviceBox">Service Box 2</label> <input type="hidden" name="old_service_box2" value="{{$service_box2->id}}"> {!! Form::select('service_box2', $service_items, $service_box2->id, ['class' => 'form-control custom-select input-lg bg-success']) !!} </div> @else <div class="form-group"> <label for="serviceBox">Service Box 2</label> {!! Form::select('service_box2', $service_items, null, ['class' => 'form-control custom-select input-lg']) !!} </div> @endif </div> </div> <div class="row"> <div class="col-md-6"> @if(isset($call_to_action)) <div class="form-group"> <label for="call_to_action">Footer - Call to Action</label> <input type="hidden" name="old_call_to_action" value="{{$call_to_action->id}}"> {!! Form::select('call_to_action', $callTo_items, $call_to_action->id, ['class' => 'form-control custom-select input-lg bg-success']) !!} </div> @else <div class="form-group"> <label for="call_to_action">Footer - Call to Action</label> {!! Form::select('call_to_action', $callTo_items, null, ['class' => 'form-control custom-select input-lg']) !!} </div> @endif </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.creator.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_add').validate({ rules: { title: { required: true }, slug: { required: true } }, messages: { title: { required: 'Please enter a title' }, slug: { required: 'Please enter a slug' } } }); }); </script> @endsection