Server IP : 108.163.255.210 / Your IP : 18.117.74.47 Web Server : Apache System : Linux blossom.urlnameserver.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64 User : ( 1172) PHP Version : 7.2.34 Disable Function : eval,escapeshellarg,proc_close,proc_get_status,proc_nice,proc_open,symlink,system,pcntl_exec,getrusage,chown,chgp,closelog,openlog,syslog,define_syslog_variables,php_ini_loaded_file,getservbyname,getservbyport,posix_getgid,posix_getgrgid,proc_terminate,pfsockopen,apache_child_terminate,posix_mkfifo,posix_setpgid,posix_setuid,hypot,pg_host,pos,posix_access,posix_getcwd,posix_getservbyname,myshellexec,getpid,posix_getsid,posix_isatty,posix_kill,posix_mknod,posix_setgid,posix_setsid,posix_setuid,posix_times,posix_uname,ps_fill,posix_getpwuid,global,ini_restore,zip_open,zip_read,rar_open,bzopen,bzread,bzwrite,apache_get_modules,apache_get_version,phpversionphpinfo,php_ini_scanned_files,get_current_user,disk_total_space,diskfreespace,leak,imap_list,hypo,filedump,safe_mode,getmygid,apache_getenv,apache_setenv,bzread,bzwrite,bzopen,phpini,higlight_file,dos_conv,get_cwd,er_log,cmd,e_name,vdir,get_dir,only_read,ftok,ftpexec,posix_getpwnam,mysql_list_dbs,disk_free_space,session_save_path,confirm_phpdoc_compiled,zip_entry_rea,php_u,psockopen,crack_opendict,crack_getlastmessage,crack_closedict,crack_check,fpassthru,posix_get_last_error,posix_getlogin,posix_getgroups,posix_strerror,posix_getrlimit,posix_getpgrp,posix_getgrnam,pos,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/unilinki/public_html/thesafetypoint.com/resources/views/admin/pages/blog/ |
Upload File : |
@extends('admin.template.master') @section('title', $title) @section('content') @php $id = ''; $title = ''; $category = ''; $tag = ''; $short = ''; $description = ''; $image = ''; $credit = ''; $credit_url = ''; if(isset($blogData)) { $id = $blogData->id; $title = $blogData->title; $category = $blogData->category; $tag = $blogData->tag; $short = $blogData->short_description; $description = $blogData->description; $image = $blogData->image; $credit = $blogData->credit; $credit_url = $blogData->credit_url; } $userId= Auth::user()->id; @endphp <div class="app-content content"> <div class="content-wrapper"> <div class="content-header row"> <div class="content-header-left col-md-8 col-12 mb-2 breadcrumb-new"> <h3 class="content-header-title mb-0 d-inline-block">Blogs</h3> <div class="row breadcrumbs-top d-inline-block"> <div class="breadcrumb-wrapper col-12"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="{{ route('auth.dashboard') }}">Home</a> </li> <li class="breadcrumb-item"><a href="{{ route('auth.blog.index') }}">Blogs</a> </li> <li class="breadcrumb-item active">Data </li> </ol> </div> </div> </div> {{-- <div class="content-header-right col-md-4 col-12"> <div class="btn-group float-md-right"> <button class="btn btn-info dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="icon-settings mr-1"></i>Action</button> <div class="dropdown-menu arrow"><a class="dropdown-item" href="#"><i class="fa fa-calendar mr-1"></i> Calender</a><a class="dropdown-item" href="#"><i class="fa fa-cart-plus mr-1"></i> Cart</a><a class="dropdown-item" href="#"><i class="fa fa-life-ring mr-1"></i> Support</a> <div class="dropdown-divider"></div><a class="dropdown-item" href="#"><i class="fa fa-cog mr-1"></i> Settings</a> </div> </div> </div> --}} </div> <div class="content-body"> <!-- Basic form layout section start --> <section id="horizontal-form-layouts"> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h4 class="card-title" id="horz-layout-colored-controls">Blogs</h4> <a class="heading-elements-toggle"><i class="fa fa-ellipsis-v font-medium-3"></i></a> <div class="heading-elements"> <ul class="list-inline mb-0"> <li><a data-action="collapse"><i class="ft-minus"></i></a></li> <li><a data-action="reload"><i class="ft-rotate-cw"></i></a></li> <li><a data-action="expand"><i class="ft-maximize"></i></a></li> <li><a data-action="close"><i class="ft-x"></i></a></li> </ul> </div> </div> <div class="card-content collpase show"> <div class="card-body"> @include('admin.partials.flash_message') <form action="{{ $action }}" method="post" enctype="multipart/form-data" class="form form-horizontal"> @csrf() @if(!empty($method)) @method($method) @endif <div class="form-body"> <h4 class="form-section"><i class="fa fa-eye"></i> About Blogs</h4> <div class="row"> <div class="col-md-12"> <div class="form-group row"> <label class="col-md-3 label-control" for="userinput1">Title : <span class="danger">*</span></label> <div class="col-md-9"> <input type="text" id="userinput1" class="form-control border-primary" placeholder="Title" name="title" value="{{ $title }}" required=""> </div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group row"> <label class="col-md-3 label-control" for="userinput1">Short Description : <span class="danger">*</span></label> <div class="col-md-9"> <input type="text" id="userinput1" class="form-control border-primary" placeholder="Short Description" name="short_description" value="{{ $short }}" required=""> </div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group" style="display: none;"> <button id="edit"></button> <button id="save"></button> </div> <div class="form-group row"> <label class="col-md-3 label-control" for="userinput3"> Description <span class="text-danger">*</span> :</label> <div class="col-md-9"> <textarea class="summernote" name="description">{{ $description }}</textarea> </div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group row"> <label class="col-md-3 label-control" for="userinput1">Category : <span class="danger">*</span></label> <div class="col-md-9"> <select name="category" class="form-control select2"> <option>--Select--</option> @foreach($blog_categories as $s) <option value="{{ $s->id }}" <?php if($s->id == $category){ echo "selected"; } ?>>{{ $s->title }}</option> @endforeach </select> </div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group row"> <label class="col-md-3 label-control" for="userinput1">Tag : <span class="danger">*</span></label> <div class="col-md-9"> <select name="tag" class="form-control select2"> <option>--Select--</option> @foreach($blog_tags as $s) <option value="{{ $s->id }}" <?php if($s->id == $tag){ echo "selected"; } ?>>{{ $s->title }}</option> @endforeach </select> </div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group row"> <label class="col-md-3 label-control" for="userinput1">Blog Image : <span class="danger">*</span></label> <div class="col-md-9"> <input type="file" name="image" id="imageUpload" class="hide"> <label for="imageUpload" class="upload-poster mr-5">Select file</label> Max Size 2 mb<br> @if(trim($image)) <img src="{{ env('APP_URL')}}/storage/app/public/blogs/{{ trim($image) }}" style="width: 100%; height: 300px;"> @else <img src="{{ asset('assets/admin/images/dummy-logo.jpg')}}" id="imagePreview" class="organisation-logo" alt="Your image will appear here."> @endif </div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group row"> <label class="col-md-3 label-control" for="userinput1">Credit : </label> <div class="col-md-9"> <input type="text" id="userinput1" class="form-control border-primary" placeholder="Credit" name="credit" value="{{ $credit }}" required=""> </div> </div> </div> </div> <div class="row"> <div class="col-md-12"> <div class="form-group row"> <label class="col-md-3 label-control" for="userinput1">Credit URL :</label> <div class="col-md-9"> <input type="text" id="userinput1" class="form-control border-primary" placeholder="Credit URL" name="credit_url" value="{{ $credit_url }}" required=""> </div> </div> </div> </div> </div> <div class="form-actions right"> <button type="submit" class="btn btn-primary"> <i class="fa fa-check-square-o"></i> Save </button> </div> </form> </div> </div> </div> </div> </div> </section> <!-- // Basic form layout section end --> </div> </div> </div> @endsection