@extends('layouts.default') @section('content') {{ HTML::style('fileupload/css/blueimp-gallery.min.css') }} {{ HTML::style('fileupload/css/jquery.fileupload.css') }} {{ HTML::style('fileupload/css/jquery.fileupload-ui.css') }} {{ HTML::style('css/smoothness/jquery-ui-1.10.4.custom.css') }} {{ HTML::style('css/bootstrap-switch.min.css') }}

{{Lang::get('messages.edit_product')}}

{{ Form::open(array('url'=> Lang::get('routes.home').'/'.Lang::get('routes.user_product_edit').$product_id.'/'.Lang::get('routes.product_edit'), 'class'=>'form-horizontal', 'role'=>'form', 'name'=>'product_add','id'=>'product_add')) }}
{{ Form::text('title',$dataArray['getProduct']->name, array('class'=>'form-control','id'=>'title','placeholder'=>Lang::get('messages.name_of_your_product'))) }}
{{$dataArray['getProduct']->currencycodes->symbol}} {{ Form::text('price',$dataArray['getProduct']->price, array('class'=>'form-control','id'=>'price','placeholder'=>Lang::get('messages.give_a_price'))) }} .00
{{ Form::textarea('description',$dataArray['getProduct']->description, array('rows'=>'3','class'=>'form-control','id'=>'description','placeholder'=>Lang::get('messages.give_brief_info'))) }}
@if($dataArray['getProduct']->type!='digital' && $dataArray['getProduct']->type!='ticket')
{{ Form::text('shipping_name', null, array('class'=>'form-control shipping_name product_shipping','id'=>'shipping_name','placeholder'=>Lang::get('messages.shipping_name'))) }}
{{ Form::text('shipping_additional', null, array('class'=>'form-control shipping_additional product_shipping','id'=>'shipping_additional','placeholder'=>Lang::get('messages.amount'),'number'=>'true')) }}
@foreach($dataArray['getProduct']->product_shipping as $shipping)
{{$shipping->name}}${{$shipping->price}}
@endforeach
@endif
@if($dataArray['getProduct']->quantity!=0) {{ Form::text('quantity',$dataArray['getProduct']->quantity, array('class'=>'form-control','id'=>'productQuantity','placeholder'=> Lang::get('messages.limit_quantity'))) }} @else {{ Form::text('quantity','', array('class'=>'form-control','id'=>'productQuantity','placeholder'=> Lang::get('messages.limit_quantity'))) }} @endif
@if($dataArray['getProduct']->type!='digital' && $dataArray['getProduct']->type!='ticket')
{{ Form::text('option_name', null, array('class'=>'form-control','id'=>'optionName','placeholder'=> Lang::get('messages.option_name'))) }}
@foreach($dataArray['getProduct']->product_option as $option)

{{$option->name}}

@foreach($option->product_option_value as $optionvalues) @endforeach {{$option->name}}
{{Lang::get('messages.option_value')}} {{Lang::get('messages.additional')}} {{Lang::get('messages.quantity')}}
+ {{Lang::get('messages.add_another')}}
@endforeach @endif
@if(empty($dataArray['getproductDate'])) {{ Form::text('expiration_day',$dataArray['getproductDate'], array('class'=>'form-control','id'=>'datepicker','placeholder'=>Lang::get('messages.expiration_day'))) }} @else {{ Form::text('expiration_day','', array('class'=>'form-control','id'=>'datepicker','placeholder'=>Lang::get('messages.expiration_day'))) }} @endif
{{Form::select('available_countries',$getCountries,$dataArray['getProduct']->shipping,array('class'=>'form-control','id'=>'available_countries'))}}
{{ Form::close() }}

{{Lang::get('messages.product_images')}} {{Lang::get('messages.product_images_sub')}}

{{Lang::get('messages.product_images_info')}}

@if(!empty($dataArray['getProductImage'])) @foreach($dataArray['getProductImage'] as $image) @endforeach
Add Images...
 
@else @foreach($dataArray['getProductImage'] as $image) @endforeach

{{Lang::get('messages.product_images_info')}}

{{Lang::get('messages.add_images')}}...
 
@endif @if($dataArray['getProduct']->type=='digital')

{{Lang::get('messages.digital_files')}} {{Lang::get('messages.digital_files_sub')}}

@foreach($dataArray['getProductDigital'] as $digital)
{{$digital->size}} KB
@endforeach

{{Lang::get('messages.digital_files_info')}}

{{Lang::get('messages.add_files')}}...
 
@endif
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@stop @section('footer_js') {{ HTML::script('fileupload/js/vendor/jquery.ui.widget.js') }} {{ HTML::script('js/jquery-ui-1.10.4.custom.min.js') }} {{ HTML::script('js/jquery.validate.js') }} {{ HTML::script('js/additional-methods.js') }} {{ HTML::script('js/messages_tr.js') }} {{ HTML::script('fileupload/js/tpml.min.js') }} {{ HTML::script('fileupload/js/load-image.min.js') }} {{ HTML::script('fileupload/js/canvas-blob.min.js') }} {{ HTML::script('js/bootstrap.min.js') }} {{ HTML::script('fileupload/js/jquery.blueimp-gallery.min.js') }} {{ HTML::script('fileupload/js/jquery.iframe-transport.js') }} {{ HTML::script('fileupload/js/jquery.fileupload.js') }} {{ HTML::script('fileupload/js/jquery.fileupload-process.js') }} {{ HTML::script('fileupload/js/jquery.fileupload-image.js') }} {{ HTML::script('fileupload/js/jquery.fileupload-audio.js') }} {{ HTML::script('fileupload/js/jquery.fileupload-video.js') }} {{ HTML::script('fileupload/js/jquery.fileupload-validate.js') }} {{ HTML::script('fileupload/js/jquery.fileupload-ui.js') }} {{ HTML::script('fileupload/js/main.js') }} {{ HTML::script('js/bootstrap-switch.min.js') }} @stop