@extends('admin.layouts.master') @section('title') New Product - add @stop @section('content')
@if(!$edit_mode) New Product Category: {{ $product_category->name }} @else Edit Product: {{ $product->name }} Category: {{ $product_category->name }} @endif
{{ Form::open(array('url' => 'admin/products/save', 'files' => true, 'id' => 'product_form')) }} {{ Form::hidden('category', $product_category->id) }} {{ Form::hidden('edit_mode', $edit_mode) }} @if($edit_mode) {{ Form::hidden('product_id', $product->id) }} @endif

General Information

{{--
{{ Form::text('name', $edit_mode ? $product->name : Input::get('name'), array('class' => 'form-control')) }} {{ Form::label('name', 'Name') }}
--}}
@if($edit_mode) {{ Form::text('sku', $edit_mode ? $product->sku : Input::get('sku'), array('class' => 'form-control', 'readonly' => true)) }} @else {{ Form::text('sku', $edit_mode ? $product->sku : Input::get('sku'), array('class' => 'form-control')) }} @endif {{ Form::label('sku', 'SKU') }}
{{ Form::text('serial_number', $edit_mode ? $product->serial_number : Input::get('serial_number'), array('class' => 'form-control')) }} {{ Form::label('serial_number') }}
{{ Form::text('date_added_to_fleet', $edit_mode ? $product->date_added_to_fleet ? $product->date_added_to_fleet->format('d-M-y') : null : Input::get('date_added_to_fleet'), array('class' => 'form-control', 'data-provide' => 'datepicker', 'data-date-format' => 'dd-M-yy')) }} {{ Form::label('date_added_to_fleet') }}
{{ Form::text('quantity', $edit_mode ? $product->quantity : Input::get('quantity'), array('class' => 'form-control')) }} {{ Form::label('quantity') }}
{{ Form::text('option', $edit_mode ? $product->option : Input::get('option'), array('class' => 'form-control')) }} {{ Form::label('Size') }}
{{--
{{ Form::textarea('short_description', $edit_mode ? $product->short_description : Input::get('short_description'), array('name'=>'short_description','id'=>'summernote_22','class' => 'form-control','placeholder'=>'Enter more text')) }} {{ Form::label('short_description', 'Short Description') }}
--}}
{{ Form::textarea('description', $edit_mode ? $product->description : Input::get('description'), array('name'=>'description','id'=>'description', 'rows' => '2','class' => 'form-control','placeholder'=>'Enter product description')) }} {{ Form::label('description', 'Description') }}
@foreach($general_information_group_attributes as $_attribute)
@include('admin.products.inputs.'.$_attribute->input_type, array('attribute' => $_attribute))
@endforeach

Price

{{ Form::text('cost', $edit_mode ? $product->cost : Input::get('cost', 0), array('class' => 'form-control', 'min' => 0)) }} {{ Form::label('cost') }} {{--Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->purchase_price }}--}}
{{ Form::text('msrp', $edit_mode ? $product->msrp : Input::get('msrp', 0), array('class' => 'form-control', 'min' => 0)) }} {{ Form::label('msrp', 'MSRP') }} {{--Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->msrp }}--}}
{{ Form::text('min_sale_price', $edit_mode ? $product->min_sale_price : Input::get('min_sale_price', 0), array('class' => 'form-control', 'min' => 0)) }} {{ Form::label('min_sale_price') }} {{--Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->msrp }}--}}
@if($product_category->type == 'rent') @if($product_category->rent_price_type == 'hourly') @endif @if($product_category->rent_price_type == 'daily') @endif
{{ Form::text('1st_hour', $edit_mode ? $product->getOverridePlanPrice('1st_hour') : null, array('class' => 'form-control price-input')) }} {{ Form::label('1st_hour') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('1st_hour') }}
{{ Form::text('2nd_hour', $edit_mode ? $product->getOverridePlanPrice('2nd_hour') : null, array('class' => 'form-control price-input')) }} {{ Form::label('2nd_hour') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('2nd_hour') }}
{{ Form::text('3rd_hour', $edit_mode ? $product->getOverridePlanPrice('3rd_hour') : null, array('class' => 'form-control price-input')) }} {{ Form::label('3rd_hour') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('3rd_hour') }}
{{ Form::text('4th_hour', $edit_mode ? $product->getOverridePlanPrice('4th_hour') : null, array('class' => 'form-control price-input')) }} {{ Form::label('4th_hour') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('4th_hour') }}
{{ Form::text('5th_hour', $edit_mode ? $product->getOverridePlanPrice('5th_hour') : null, array('class' => 'form-control price-input')) }} {{ Form::label('5th_hour') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('5th_hour') }}
{{ Form::text('6th_hour', $edit_mode ? $product->getOverridePlanPrice('6th_hour') : null, array('class' => 'form-control price-input')) }} {{ Form::label('6th_hour') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('6th_hour') }}
{{ Form::text('7th_hour', $edit_mode ? $product->getOverridePlanPrice('7th_hour') : null, array('class' => 'form-control price-input')) }} {{ Form::label('7th_hour') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('7th_hour') }}
{{ Form::text('8th_hour', $edit_mode ? $product->getOverridePlanPrice('8th_hour') : null, array('class' => 'form-control price-input')) }} {{ Form::label('8th_hour') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('8th_hour') }}
{{ Form::text('9th_hour', $edit_mode ? $product->getOverridePlanPrice('9th_hour') : null, array('class' => 'form-control price-input')) }} {{ Form::label('9th_hour') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('9th_hour') }}
{{ Form::text('10th_hour', $edit_mode ? $product->getOverridePlanPrice('10th_hour') : null, array('class' => 'form-control price-input')) }} {{ Form::label('10th_hour') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('10th_hour') }}
{{ Form::text('11th_hour', $edit_mode ? $product->getOverridePlanPrice('11th_hour') : null, array('class' => 'form-control price-input')) }} {{ Form::label('11th_hour') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('11th_hour') }}
{{ Form::text('12th_hour', $edit_mode ? $product->getOverridePlanPrice('12th_hour') : null, array('class' => 'form-control price-input')) }} {{ Form::label('12th_hour') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('12th_hour') }}
{{ Form::text('over_night', $edit_mode ? $product->getOverridePlanPrice('over_night') : null, array('class' => 'form-control price-input')) }} {{ Form::label('over_night') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('over_night') }}
{{ Form::text('1st_day', $edit_mode ? $product->getOverridePlanPrice('1st_day') : null, array('class' => 'form-control price-input')) }} {{ Form::label('1st_day') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('1st_day') }}
{{ Form::text('2nd_day', $edit_mode ? $product->getOverridePlanPrice('2nd_day') : null, array('class' => 'form-control price-input')) }} {{ Form::label('2nd_day') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('2nd_day') }}
{{ Form::text('extra_day', $edit_mode ? $product->getOverridePlanPrice('extra_day') : null, array('class' => 'form-control price-input')) }} {{ Form::label('extra_day') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('extra_day') }}
{{ Form::text('1st_day', $edit_mode ? $product->getOverridePlanPrice('1st_day') : null, array('class' => 'form-control price-input')) }} {{ Form::label('1st_day') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('1st_day') }}
{{ Form::text('2nd_day', $edit_mode ? $product->getOverridePlanPrice('2nd_day') : null, array('class' => 'form-control price-input')) }} {{ Form::label('2nd_day') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('2nd_day') }}
{{ Form::text('3rd_day', $edit_mode ? $product->getOverridePlanPrice('3rd_day') : null, array('class' => 'form-control price-input')) }} {{ Form::label('3rd_day') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('3rd_day') }}
{{ Form::text('4th_day', $edit_mode ? $product->getOverridePlanPrice('4th_day') : null, array('class' => 'form-control price-input')) }} {{ Form::label('4th_day') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('4th_day') }}
{{ Form::text('5th_day', $edit_mode ? $product->getOverridePlanPrice('5th_day') : null, array('class' => 'form-control price-input')) }} {{ Form::label('5th_day') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('5th_day') }}
{{ Form::text('6th_day', $edit_mode ? $product->getOverridePlanPrice('6th_day') : null, array('class' => 'form-control price-input')) }} {{ Form::label('6th_day') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('6th_day') }}
{{ Form::text('7th_day', $edit_mode ? $product->getOverridePlanPrice('7th_day') : null, array('class' => 'form-control price-input')) }} {{ Form::label('7th_day') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('7th_day') }}
{{ Form::text('8th_day', $edit_mode ? $product->getOverridePlanPrice('8th_day') : null, array('class' => 'form-control price-input')) }} {{ Form::label('8th_day') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('8th_day') }}
{{ Form::text('9th_day', $edit_mode ? $product->getOverridePlanPrice('9th_day') : null, array('class' => 'form-control price-input')) }} {{ Form::label('9th_day') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('9th_day') }}
{{ Form::text('10th_day', $edit_mode ? $product->getOverridePlanPrice('10th_day') : null, array('class' => 'form-control price-input')) }} {{ Form::label('10th_day') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('10th_day') }}
{{ Form::text('11th_day', $edit_mode ? $product->getOverridePlanPrice('11th_day') : null, array('class' => 'form-control price-input')) }} {{ Form::label('11th_day') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('11th_day') }}
{{ Form::text('12th_day', $edit_mode ? $product->getOverridePlanPrice('12th_day') : null, array('class' => 'form-control price-input')) }} {{ Form::label('12th_day') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('12th_day') }}
{{ Form::text('13th_day', $edit_mode ? $product->getOverridePlanPrice('13th_day') : null, array('class' => 'form-control price-input')) }} {{ Form::label('13th_day') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('13th_day') }}
{{ Form::text('14th_day', $edit_mode ? $product->getOverridePlanPrice('14th_day') : null, array('class' => 'form-control price-input')) }} {{ Form::label('14th_day') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('14th_day') }}
{{ Form::text('extra_day', $edit_mode ? $product->getOverridePlanPrice('extra_day') : null, array('class' => 'form-control price-input')) }} {{ Form::label('extra_day') }} Parent Category: {{ Setting::get('currency_symbol') }}{{ $product_category->getPlanPrice('extra_day') }}
@endif
@foreach($attributeGroups as $attributeGroup)