@extends('backend.layouts.app') @section('title', $data['p_heading']) @section('content') {!! Form::model($data['product'], ['method' => 'PATCH', 'route' => ['admin.product.update.details', $data['product']->id]]) !!}
{{ $data['p_heading'] }}
Content
{!! Form::label('short_description', 'Short Description:') !!} {!! Form::textarea('short_description', null,['class'=>'form-control', 'placeholder'=>'Short description ...', 'rows'=>'3']) !!}
{!! Form::label('full_description', 'Full Description:') !!} {!! Form::textarea('full_description', null,['class'=>'form-control ckeditor', 'placeholder'=>'Full description ...', 'rows'=>'3']) !!}
{!! Form::label('pdf_link', 'Link PDF File:') !!} {!! Form::url('pdf_link', null,['class'=>'form-control', 'placeholder'=>'Copy/paste PDF link ...']) !!}
{!! Form::label('video_link', 'Link Video:') !!} {!! Form::url('video_link', null,['class'=>'form-control', 'placeholder'=>'Copy/paste Video link ...']) !!}
{!! Form::label('video_id', 'Attach Existing Video:') !!} {!! Form::select('video_id', $data['videos'], null, ['class'=>'form-control', 'placeholder' => 'Please Select Video to Attach ...']) !!}
@if($data['product']->type == 'simple')
{!! Form::label('Shape:') !!} {!! Form::select('shape', \App\Models\Product::$shapes, null, ['id' => 'shape', 'class' => 'form-control', 'placeholder' => 'Please Select ...']) !!}
{!! Form::label('Length:') !!} {!! Form::select('length', \App\Models\Product::$lengths, null, ['id' => 'length', 'class' => 'form-control', 'placeholder' => 'Please Select ...']) !!}
{!! Form::label('Tip Size:') !!} {!! Form::select('tip', \App\Models\Product::$tips, null, ['id' => 'tip', 'class' => 'form-control', 'placeholder' => 'Please Select ...']) !!}
{!! Form::label('Primary Material:') !!} {!! Form::select('material_primary', \App\Models\Product::$materials, null, ['id' => 'material_primary', 'class' => 'form-control', 'placeholder' => 'Please Select ...']) !!}
{!! Form::label('Secondary Material:') !!} {!! Form::select('material_secondary', \App\Models\Product::$materials, null, ['id' => 'material_secondary', 'class' => 'form-control', 'placeholder' => 'Please Select ...']) !!}
{!! Form::label('Sterilty:') !!} {!! Form::select('sterilty', \App\Models\Product::$sterilty, null, ['id' => 'sterilty', 'class' => 'form-control', 'placeholder' => 'Please Select ...']) !!}
@foreach(\App\Models\Product::$additional_info as $key => $value)
{!! Form::label('additional_info_'.$key, $value.':') !!} {!! Form::select('additional_info', $data['additional_info'][$key], $data['additional_information'][$key], ['name'=>'additional_info['. $key .']', 'id' => 'additional_info_'.$key,'class'=>'form-control select_info']) !!}
@endforeach
{!! Form::label('price_catalog', 'Price:') !!} {!! Form::text('price_catalog', null,['class'=>'form-control', 'placeholder'=>'Enter price ...']) !!}
{!! Form::label('price_discounted', 'Special Price:') !!} {!! Form::text('price_discounted', null,['class'=>'form-control', 'placeholder'=>'Enter special price ...']) !!}
{!! Form::label('price_discounted_start', 'Special Price Start Date:') !!} {!! Form::date('price_discounted_start', null,['class'=>'form-control', 'placeholder'=>'Enter special price start date ...']) !!}
{!! Form::label('price_discounted_end', 'Special Price End Date:') !!} {!! Form::date('price_discounted_end', null,['class'=>'form-control', 'placeholder'=>'Enter special price end date ...']) !!}
@endif
{!! Form::label('meta_title', 'Meta Title:') !!} {!! Form::text('meta_title', null,['class'=>'form-control', 'placeholder'=>'Meta Title ...']) !!}
{!! Form::label('meta_keywords', 'Meta Keywords:') !!} {!! Form::textarea('meta_keywords', null,['class'=>'form-control', 'placeholder'=>'Meta Keywords ...', 'rows'=>'3']) !!}
{!! Form::label('meta_description', 'Meta Description:') !!} {!! Form::textarea('meta_description', null,['class'=>'form-control', 'placeholder'=>'Meta Description ...', 'rows'=>'3']) !!}
@if($data['product']->type == 'simple')
{!! Form::label('', 'In Stock:') !!}
{!! Form::label('', 'Check Quantity:') !!}
{!! Form::label('quantity', 'Available Quantity:') !!} {!! Form::number('quantity', null,['class'=>'form-control', 'placeholder'=>'Enter available quantity ...']) !!}
{!! Form::label('', 'Shipping Type:') !!}
{!! Form::label('weight', 'Weight:') !!} {!! Form::text('weight', null,['class'=>'form-control', 'placeholder'=>'Item weight ...']) !!}
{!! Form::label('', 'Taxable Item:') !!}
{!! Form::label('related_products', 'Related Products') !!} {!! Form::text('related_products', $data['product']->related_products, ['name'=>'related_products','class'=>'form-control', 'id' => 'related_products', 'placeholder' => 'Comma separated SKUs of products']) !!}
{!! Form::label('upsell_products', 'Upsell Products') !!} {!! Form::text('upsell_products', $data['product']->upsell_products, ['name'=>'upsell_products','class'=>'form-control', 'id' => 'upsell_products', 'placeholder' => 'Comma separated SKUs of products']) !!}
{!! Form::label('cross_sell_products', 'Cross Sell Products') !!} {!! Form::text('cross_sell_products', $data['product']->cross_sell_products, ['name'=>'cross_sell_products','class'=>'form-control', 'id' => 'cross_sell_products', 'placeholder' => 'Comma separated SKUs of products']) !!}
@endif
{!! Form::label('tags', 'Search Tags:') !!} {!! Form::select('tags', $data['tags'], null, ['multiple'=>'multiple','name'=>'tags[]','class'=>'form-control select_tags']) !!}
{!! Form::label('visibility', 'Visibility:') !!} {!! Form::select('visibility', \App\Models\Product::$visibility, null, ['class'=>'form-control']) !!}
{!! Form::label('', 'Featured Product:') !!}
{!! Form::label('', 'Hot Product:') !!}
{!! Form::label('', 'New Product:') !!}
{!! Form::label('is_canonical', 'Apply Canonical Tag:') !!}
{!! Form::label('canonical_url', 'Canonical URL:') !!} {!! Form::text('canonical_url', null,['class'=>'form-control', 'placeholder'=>'Enter Canonical URL or Leave Blank to Use Default ...']) !!}
{!! Form::label('do_index', 'Index:') !!}
{!! Form::label('position', 'Position:') !!} {!! Form::number('position', null,['class'=>'form-control', 'placeholder'=>'Display position ...']) !!}
{!! Form::label('', 'Status:') !!}
{!! Form::hidden('step', '2') !!} {!! Form::hidden('type', $data['product']->type) !!} Basic Info Manage Images / Files @if($data['product']->type == 'variation') Manage Variations @endif @if($data['product']->is_set == 'Y') Set Items @endif
{!! Form::close() !!} @stop