Server IP : 108.163.255.210 / Your IP : 18.217.89.130 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/AlpaiAWS/resources/views/admin_old/ |
Upload File : |
@extends('admin.layout') @section('content') <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> {{ trans('labels.EditBanner') }} <small>{{ trans('labels.EditBanner') }}...</small> </h1> <ol class="breadcrumb"> <li><a href="{{ URL::to('admin/dashboard/this_month') }}"><i class="fa fa-dashboard"></i> {{ trans('labels.breadcrumb_dashboard') }}</a></li> <li><a href="{{ URL::to('admin/banners')}}"><i class="fa fa-bars"></i> {{ trans('labels.ListingAllBanners') }}</a></li> <li class="active">{{ trans('labels.EditBanner') }}</li> </ol> </section> <!-- Main content --> <section class="content"> <!-- Info boxes --> <!-- /.row --> <div class="row"> <div class="col-md-12"> <div class="box"> <div class="box-header"> <h3 class="box-title">{{ trans('labels.EditBanner') }} </h3> </div> <!-- /.box-header --> <div class="box-body"> <div class="row"> <div class="col-xs-12"> <div class="box box-info"> <br> @if (count($errors) > 0) @if($errors->any()) <div class="alert alert-success alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button> {{$errors->first()}} </div> @endif @endif <!--<div class="box-header with-border"> <h3 class="box-title">Edit category</h3> </div>--> <!-- /.box-header --> <!-- form start --> <div class="box-body"> {!! Form::open(array('url' =>'admin/updateBanner', 'method'=>'post', 'class' => 'form-horizontal', 'enctype'=>'multipart/form-data')) !!} {!! Form::hidden('id', $result['banners'][0]->banners_id , array('class'=>'form-control', 'id'=>'id')) !!} {!! Form::hidden('oldImage', $result['banners'][0]->banners_image, array('id'=>'oldImage')) !!} <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Title') }} </label> <div class="col-sm-10 col-md-4"> {!! Form::text('banners_title', $result['banners'][0]->banners_title, array('class'=>'form-control','id'=>'banners_title')) !!} <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">{{ trans('labels.BannerTitletext') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Categories') }}</label> <div class="col-sm-10 col-md-4"> <select class="form-control" name="type" id="bannerType"> <option value="category" @if($result['banners'][0]->type=='category') selected @endif> {{ trans('labels.ChooseSubCategory') }}</option> <option value="product" @if($result['banners'][0]->type=='product') selected @endif>Product</option> <option value="top seller" @if($result['banners'][0]->type=='top seller') selected @endif>Top Seller</option> <option value="deals" @if($result['banners'][0]->type=='deals') selected @endif>Deals</option> <option value="most liked" @if($result['banners'][0]->type=='most liked') selected @endif>Most Liked</option> </select> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.AddBannerText') }}</span> </div> </div> <!--<div class="form-group banner-link"> <label for="name" class="col-sm-2 col-md-3 control-label">Banners Link </label> <div class="col-sm-10 col-md-4"> {!! Form::text('banners_url', '', array('class'=>'form-control','id'=>'banners_url')) !!} </div> </div>--> <div class="form-group categoryContent" @if($result['banners'][0]->type!='category') style="display: none" @endif > <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Categories') }}</label> <div class="col-sm-10 col-md-4"> <select class="form-control" name="categories_id" id="categories_id"> @foreach($result['categories'] as $category) <option value="{{ $category->id}}">{{ $category->name}}</option> @endforeach </select> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.CategoriesbannerText') }}</span> </div> </div> <div class="form-group productContent" @if($result['banners'][0]->type!='product') style="display: none" @endif> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Products') }}</label> <div class="col-sm-10 col-md-4"> <select class="form-control" name="products_id" id="products_id"> @foreach($result['products'] as $products_data) <option value="{{ $products_data->products_id }}">{{ $products_data->products_name }}</option> @endforeach </select> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.ProductsBannerText') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Image') }}</label> <div class="col-sm-10 col-md-4"> {!! Form::file('newImage', array('id'=>'banners')) !!} <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;">{{ trans('labels.ImageBannerText') }}</span> <br> <img src="{{asset('').$result['banners'][0]->banners_image}}" alt="" width=" 100px"> </div> </div> <!--<div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">Banners URL </label> <div class="col-sm-10 col-md-4"> {!! Form::text('banners_url', $result['banners'][0]->banners_url, array('class'=>'form-control','id'=>'banners_url')) !!} </div> </div>--> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.ExpiryDate') }}</label> <div class="col-sm-10 col-md-4"> @if(!empty($result['banners'][0]->expires_date)) {!! Form::text('expires_date', date('d/m/Y', strtotime($result['banners'][0]->expires_date)), array('class'=>'form-control datepicker', 'id'=>'expires_date')) !!} @else {!! Form::text('expires_date', '', array('class'=>'form-control datepicker', 'id'=>'expires_date')) !!} @endif <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.ExpiryDateBanner') }}</span> </div> </div> <div class="form-group"> <label for="name" class="col-sm-2 col-md-3 control-label">{{ trans('labels.Status') }}</label> <div class="col-sm-10 col-md-4"> <select class="form-control" name="status"> <option value="1" @if($result['banners'][0]->status==1) selected @endif>{{ trans('labels.Active') }}</option> <option value="0" @if($result['banners'][0]->status==0) selected @endif>{{ trans('labels.Inactive') }}</option> </select> <span class="help-block" style="font-weight: normal;font-size: 11px;margin-bottom: 0;"> {{ trans('labels.StatusBannerText') }}</span> </div> </div> <!-- /.box-body --> <div class="box-footer text-center"> <button type="submit" class="btn btn-primary">{{ trans('labels.Update') }}</button> <a href="{{ URL::to('admin/banners')}}" type="button" class="btn btn-default">{{ trans('labels.back') }}</a> </div> <!-- /.box-footer --> {!! Form::close() !!} </div> </div> </div> </div> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> <!-- /.col --> </div> <!-- /.row --> <!-- Main row --> <!-- /.row --> </section> <!-- /.content --> </div> @endsection