@extends('layouts._admin.base') @section('content')
{!! Form::open(array('url' => '/dnradmin/CustomImage/update/'.$product->id, 'method' => 'post', 'id' => 'pageform', 'files' => true,'class'=>'uk-form')); !!} @if(Session::has('success'))
{!!Session::get('success')!!}
@endif @if(Session::has('error'))
{!!Session::get('error')!!}
@endif @if(Session::has('upload_error'))
Alert: The following image does not fit the proper file dimensions and could not be uploaded, please check the image requirements again.

{!!Session::get('upload_error')!!}
@endif
  • Image Information
  • Image Name
    {!! Form::text('name',$product->image_name,array('size'=>'50','class'=>'required','id'=>'name','required')) !!} @if($errors->has('name'))
    {{ $errors->first('name') }}
    @endif
    Remaining characters
    @php $price = $product->price_range; $numbers = explode('-', $price); // Split the string into an array using the '-' delimiter // Convert array elements to integers $numbers = array_map('intval', $numbers); // If you want to remove any empty elements after the explode (e.g., if the string ends or starts with a dash) $numbers = array_filter($numbers); @endphp
    Price Range $
    {!! Form::text('startPrice',$numbers[0],array('size'=>'50','class'=>'required','style' => 'width: 30%;','placeholder'=>'starting price')) !!} - {!! Form::text('endPrice',$numbers[1],array('size'=>'50','class'=>'required','style' => 'width: 30%;','placeholder'=>'ending price')) !!} @if($errors->has('startPrice'))
    {{ $errors->first('startPrice') }}
    @endif @if($errors->has('endPrice'))
    {{ $errors->first('endPrice') }}
    @endif
    • Image
    • @if($product->thumbnail_image != "") @endif
      Select image Change Remove

      Formats: png, gif, jpg • Max Size: 2MB • Min Dimension: {{ PRODUCT_IMAGE_WIDTH }}px x {{ PRODUCT_IMAGE_HEIGHT }}px @if($errors->has('image'))
      {{ $errors->first('image') }}
      @endif
    • Thumbnail
    • Unedited Thumbnail
    • @if($product->thumbnail_image != "") @endif
    • Description
    • {!! Form::textarea('description',$product->description,array('id'=>'mods2')) !!} @if($errors->has('description'))
      {{ $errors->first('description') }}
      @endif
{!! Form::button('Update Record',array('name'=>'saveinfo','class'=>'uk-button uk-button-success', 'id'=>'saveinfo_product'))!!}   {!! Form::reset('Reset',array('name'=>'reset','class'=>'uk-button uk-button-danger'))!!} {!! Form::close() !!}
@stop @section('headercodes') {!! Html::style('_admin/plugins/jasny/css/jasny-bootstrap.min.css') !!} @stop @section('extracodes') {!! Html::script('_admin/manager/tinymce/tiny_mce.js') !!} {!! Html::script('_admin/assets/js/jquery-latest.min.js') !!} {!! Html::script('_admin/assets/js/customValidation.js') !!} {!! Html::script('_admin/manager/tinymce/styles/mods5.js') !!} {!! Html::script('_admin/assets/js/count_char.js') !!} {!! Html::script('_admin/plugins/jasny/js/jasny-bootstrap.min.js') !!} @stop