@extends('backend.layouts.app') @section('title', $data['p_heading']) @section('content')
{{ $data['p_heading'] }}
@if(sizeof($data['variations']) > 0)
@foreach($data['variations'] as $variation) @php $image = $variation->image; $path = '/up_data/products/images/thumbnails/'.$image; if(trim($image) == null && !file_exists($path)) $path = '/up_data/na.jpg'; @endphp @endforeach
Image Name SKU Price Action
{{ $variation->name }} {{ $variation->sku }} $ {{ $variation->price }}
@else Sorry, no product variations found. @endif
{!! Form::open(array('route' => ['admin.product.upload.variations', $data['product']->id], 'method' => 'POST', 'id' => 'frm_variation', 'files' => true)) !!}

Add New Variation

Basic Information
{!! Form::label('name', 'Name:') !!} {!! Form::text('name', null,['class'=>'form-control', 'required', 'placeholder'=>'Enter variation name ...']) !!}
{!! Form::label('sku', 'SKU:') !!} {!! Form::text('sku', null,['class'=>'form-control', 'required', 'placeholder'=>'Enter SKU ...']) !!}
{!! Form::label('price_catalog', 'Price:') !!} {!! Form::text('price_catalog', null,['class'=>'form-control', 'required', 'placeholder'=>'Enter price ...']) !!}
{!! Form::label('image', 'Picture:') !!} {!! Form::file('image', ['class'=>'form-control', 'placeholder'=>'Select picture ...', 'accept' => 'image/*']) !!}
{!! 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', '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 ...']) !!}
@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_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 ...']) !!}
{!! 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::select('related_products', $data['products'], null, ['multiple'=>'multiple','name'=>'related_products[]','class'=>'form-control select2', 'id' => 'related_products']) !!}
{!! Form::label('upsell_products', 'Upsell Products') !!} {!! Form::select('upsell_products', $data['products'], null, ['multiple'=>'multiple','name'=>'upsell_products[]','class'=>'form-control select2', 'id' => 'upsell_products']) !!}
{!! Form::label('cross_sell_products', 'Cross Sell Products') !!} {!! Form::select('cross_sell_products', $data['products'], null, ['multiple'=>'multiple','name'=>'cross_sell_products[]','class'=>'form-control select2', 'id' => 'cross_sell_products']) !!}
{!! Form::hidden('step', '4') !!} {!! Form::hidden('cmd', 'add', ['id' => 'cmd']) !!} {!! Form::hidden('variation_id', '', ['id' => 'variation_id']) !!}
{!! Form::close() !!}

Basic Info Update Details Manage Images / Files
@stop