@extends('admin.layouts.master') @section('title') @if(!$edit_mode) New Category @else Edit Category: {{ $category->name }} @endif @stop @section('content')
@if(!$edit_mode) New Category @else Edit Category: {{ $category->name }} @endif
{{ Form::open(array('url' => 'admin/products/categories/save','class'=>'form-horizontal form-row-stripped', 'id'=>'category_form', 'files' => true)) }} {{ Form::hidden('edit_mode', $edit_mode) }} @if($edit_mode) {{ Form::hidden('category_id', $category->id) }} @endif
{{ Form::text('name', $edit_mode ? $category->name : Input::get('name'), array('class' => 'form-control')) }} {{ Form::label('name', 'Name') }}
{{ Form::label('rental_type') }} {{ Form::select('general_type', $rental_types, $edit_mode ? $category->general_type : Input::get('general_type'), array('class'=>'bs-select form-control', 'id' => 'general_type', 'data-live-search'=>'false', 'data-size'=>'8')) }}
{{ Form::label('type', 'Type') }} @if($edit_mode) {{ Form::select('type', array('rent' => 'Rent', 'borrow' => 'Borrow', 'sale' => 'Sale'), $category->type, array('class' => 'bs-select form-control', 'disabled' => 'disabled')) }} @else {{ Form::select('type', array('rent' => 'Rent', 'borrow' => 'Borrow', 'sale' => 'Sale'), Input::get('type'), array('class'=>'bs-select form-control', 'data-live-search'=>'false', 'data-size'=>'8')) }} @endif
{{ Form::label('parent_category') }} {{ Form::select('parent', array(null => '-- Select --') + $root_categories, $edit_mode ? $category->parent_id : Input::get('parent'), array('class'=>'bs-select form-control', 'id' => 'parent', 'data-live-search'=>'false', 'data-size'=>'8')) }}
{{ Form::checkbox('inherit_from_parent', 1, $edit_mode ? $category->inherit_from_parent : Input::get('inherit_from_parent'), array('class'=>'md-check', 'id' => 'inherit_from_parent')) }}
{{ Form::checkbox('is_sku_based', 1, $edit_mode ? $category->is_sku_based : Input::get('is_sku_based'), array('class'=>'md-check', 'id' => 'is_sku_based')) }}
{{ Form::radio('is_for_purchase', 0, $edit_mode ? !$category->is_for_purchase : false, array('id'=>'is1','class'=>'md-radiobtn')) }}
{{ Form::radio('is_for_purchase', 1, $edit_mode ? $category->is_for_purchase : true, array('id'=>'is2','class'=>'md-radiobtn')) }}
{{ Form::radio('visibility_level', 1, $edit_mode ? $category->visible_to_all : true, array('id'=>'vis-public','class'=>'md-radiobtn')) }}
{{ Form::radio('visibility_level', 0, $edit_mode ? !$category->visible_to_all : false, array('id'=>'vis-staff','class'=>'md-radiobtn')) }}
{{ Form::label('rent_duration_type') }} {{ Form::select('rent_duration_type', array('flexible' => 'Flexible', 'fixed' => 'Fixed'), $edit_mode ? $category->rent_duration_type : Input::get('rent_duration_type'), array('class'=>'bs-select form-control', 'data-live-search'=>'false', 'data-size'=>'8')) }}
{{ Form::text('quantity', $edit_mode ? $category->quantity : Input::get('quantity'), array('class' => 'form-control', 'id' => 'quantity')) }} {{ Form::label('quantity', 'Quantity') }} Total number of products for this category
{{ Form::text('security_deposit', $edit_mode ? $category->guarantee_fee : Input::get('security_deposit'), array('class' => 'form-control', 'id' => 'security_deposit')) }} {{ Form::label('security_deposit', 'Security Deposit') }} Deposit holds until rental return
{{ Form::text('deposit_percentage_at_reservation', $edit_mode ? $category->deposit_percentage_at_reservation : Input::get('deposit_percentage_at_reservation'), array('class' => 'form-control', 'id' => 'deposit_percentage_at_reservation')) }} {{ Form::label('deposit_percentage_at_reservation', 'Reservation Deposit %') }} Deposit percentage paid at reservation
{{ Form::text('return_grace_time', $edit_mode ? $category->return_grace_time : Input::get('return_grace_time'), array('class' => 'form-control', 'id' => 'return_grace_time')) }} {{ Form::label('return_grace_time', 'Return Grace Time (min)', array('class' => 'time-unit')) }} No fee, if product returned by this time.
{{ Form::text('minimum_rent_time', $edit_mode ? $category->minimum_rent_time : Input::get('minimum_rent_time'), array('class' => 'form-control', 'id' => 'minimum_rent_time')) }} {{ Form::label('minimum_rent_time', 'Minimum Rent Time (min)', array('class' => 'time-unit')) }} Minimum time product can be rented
{{ Form::text('minimum_calculated_time', $edit_mode ? $category->minimum_calculated_time : Input::get('minimum_calculated_time'), array('class' => 'form-control', 'id' => 'minimum_calculated_time')) }} {{ Form::label('minimum_calculated_time', 'Minimum Billable Time Period (min)', array('class' => 'time-unit')) }} Minimum time block for rent calculation
{{ Form::text('rounding_interval', $edit_mode ? $category->rounding_interval : Input::get('rounding_interval'), array('class' => 'form-control', 'id' => 'rounding_interval')) }} {{ Form::label('rounding_interval', 'Rounding Interval (min)', array('class' => 'time-unit')) }} Minimum time considered in rent
{{ Form::text('late_return_fee', $edit_mode ? $category->late_return_fee : Input::get('late_return_fee'), array('class' => 'form-control', 'id' => 'late_return_fee')) }} {{ Form::label('late_return_fee', 'Late Return Fee') }} {{ Setting::get('currency_symbol') }} Amount charged when return late
{{ Form::text('late_return_threshold', $edit_mode ? $category->late_return_threshold : Input::get('late_return_threshold'), array('class' => 'form-control', 'id' => 'late_return_threshold')) }} {{ Form::label('late_return_threshold', 'Late Return Threshold (min)', array('class' => 'time-unit')) }} Maximum time allowance to return with no late charges
{{ Form::text('over_usage_rate', $edit_mode ? $category->over_usage_rate : Input::get('over_usage_rate'), array('class' => 'form-control', 'id' => 'over_usage_rate')) }} {{ Form::label('over_usage_rate', 'Over Usage Rate (%)') }} The percentage added to normal rate when late
{{ Form::text('purchase_price', $edit_mode ? $category->purchase_price : Input::get('purchase_price'), array('class' => 'form-control', 'min' => 0)) }} {{ Form::label('purchase_price', 'Price') }} {{ Setting::get('currency_symbol') }}(per item)
{{--
{{ Form::text('price_markup_percentage', $edit_mode ? $category->price_markup_percentage : Input::get('price_markup_percentage'), array('class' => 'form-control', 'min' => 0)) }} {{ Form::label('price_markup_percentage') }}
--}}
{{ Form::text('cost', $edit_mode ? $category->cost : Input::get('cost'), array('class' => 'form-control', 'id' => 'cost')) }} {{ Form::label('cost', 'Cost') }} {{ Setting::get('currency_symbol') }} cost per item
{{ Form::text('service_time', $edit_mode ? $category->service_time : Input::get('service_time'), array('class' => 'form-control', 'id' => 'service_time')) }} {{ Form::label('service_time', 'Service Time (min)', array('class' => 'time-unit')) }} Service time between rents
{{ Form::text('service_hours_before_maintenance', $edit_mode ? $category->service_hours_before_maintenance : Input::get('service_hours_before_maintenance'), array('class' => 'form-control', 'id' => 'service_hours_before_maintenance')) }} {{ Form::label('service_hours_before_maintenance', 'Service Hours') }} Service hours before maintenance
{{ Form::label('service_notification') }} {{ Form::select('service_notification', array('ignore' => 'Ignore', 'warn' => 'Warn', 'prevent' => 'Prevent'), $edit_mode ? $category->service_notification : Input::get('service_notification'), array('class'=>'bs-select form-control', 'data-live-search'=>'false', 'data-size'=>'8')) }}
{{ Form::label('early_pickup_time', 'Early Pickup Time', ['style' => 'white-space: nowrap;overflow: hidden;text-overflow: ellipsis;']) }} {{ Form::text('early_pickup_time', $edit_mode ? $category->early_pickup_time : Input::get('early_pickup_time'), array('id' => 'early_pickup_time', 'class' => 'form-control', 'data-provide' => 'timepicker', 'data-time-format' => 'hh:ii')) }}
{{ Form::label('late_drop_off_time', 'Late Drop-off Time', ['style' => 'white-space: nowrap;overflow: hidden;text-overflow: ellipsis;']) }} {{ Form::text('late_drop_off_time', $edit_mode ? $category->late_drop_off_time : Input::get('late_drop_off_time'), array('id' => 'late_drop_off_time', 'class' => 'form-control', 'data-provide' => 'timepicker', 'data-time-format' => 'hh:ii')) }}
{{ Form::label('current_price_session_type') }} {{ Form::select('current_price_session_type', array('low' => 'Low Session', 'normal' => 'Normal Session', 'high' => 'High Session'), $edit_mode ? $category->current_price_session_type : Input::get('current_price_session_type'), array('class'=>'bs-select form-control', 'data-live-search'=>'false', 'data-size'=>'8')) }}
{{ Form::select('rent_price_type', array('hourly' => 'Hourly', 'daily' => 'Daily'), $edit_mode ? $category->rent_price_type : Input::get('rent_price_type'), array('class'=>'bs-select form-control', 'data-live-search'=>'false', 'data-size'=>'8')) }}

Price Table

{{ Form::select('session_type', ['low' => 'Low Session', 'normal' => 'Normal Session', 'high' => 'High Session'], $edit_mode ? $category->current_price_session_type : 'normal') }}
@foreach(['normal', 'high', 'low'] as $session_type)
{{ Form::text('1st_hour_' . $session_type, $edit_mode ? $category->getPlanPrice('1st_hour', $session_type) : Input::get('1st_hour', 0), array('class' => 'form-control', 'id' => '1st_hour_' . $session_type)) }} {{ Form::label('1st_hour_' . $session_type, '1st hour') }}
{{ Form::text('2nd_hour_' . $session_type, $edit_mode ? $category->getPlanPrice('2nd_hour', $session_type) : Input::get('2nd_hour', 0), array('class' => 'form-control', 'id' => '2nd_hour_' . $session_type)) }} {{ Form::label('2nd_hour_' . $session_type, '2nd hour') }}
{{ Form::text('3rd_hour_' . $session_type, $edit_mode ? $category->getPlanPrice('3rd_hour', $session_type) : Input::get('3rd_hour', 0), array('class' => 'form-control', 'id' => '3rd_hour_' . $session_type)) }} {{ Form::label('3rd_hour_' . $session_type, '3rd hour') }}
{{ Form::text('4th_hour_' . $session_type, $edit_mode ? $category->getPlanPrice('4th_hour', $session_type) : Input::get('4th_hour', 0), array('class' => 'form-control', 'id' => '4th_hour_' . $session_type)) }} {{ Form::label('4th_hour_' . $session_type, '4th hour') }}
{{ Form::text('5th_hour_' . $session_type, $edit_mode ? $category->getPlanPrice('5th_hour', $session_type) : Input::get('5th_hour', 0), array('class' => 'form-control', 'id' => '5th_hour_' . $session_type)) }} {{ Form::label('5th_hour_' . $session_type, '5th hour') }}
{{ Form::text('6th_hour_' . $session_type, $edit_mode ? $category->getPlanPrice('6th_hour', $session_type) : Input::get('6th_hour', 0), array('class' => 'form-control', 'id' => '6th_hour_' . $session_type)) }} {{ Form::label('6th_hour_' . $session_type, '6th hour') }}
{{ Form::text('7th_hour_' . $session_type, $edit_mode ? $category->getPlanPrice('7th_hour', $session_type) : Input::get('7th_hour', 0), array('class' => 'form-control', 'id' => '7th_hour_' . $session_type)) }} {{ Form::label('7th_hour_' . $session_type, '7th hour') }}
{{ Form::text('8th_hour_' . $session_type, $edit_mode ? $category->getPlanPrice('8th_hour', $session_type) : Input::get('8th_hour', 0), array('class' => 'form-control', 'id' => '8th_hour_' . $session_type)) }} {{ Form::label('8th_hour_' . $session_type, '8th hour') }}
{{ Form::text('9th_hour_' . $session_type, $edit_mode ? $category->getPlanPrice('9th_hour', $session_type) : Input::get('9th_hour', 0), array('class' => 'form-control', 'id' => '9th_hour_' . $session_type)) }} {{ Form::label('9th_hour_' . $session_type, '9th hour') }}
{{ Form::text('10th_hour_' . $session_type, $edit_mode ? $category->getPlanPrice('10th_hour', $session_type) : Input::get('10th_hour', 0), array('class' => 'form-control', 'id' => '10th_hour_' . $session_type)) }} {{ Form::label('10th_hour') }}
{{ Form::text('11th_hour_' . $session_type, $edit_mode ? $category->getPlanPrice('11th_hour', $session_type) : Input::get('11th_hour', 0), array('class' => 'form-control', 'id' => '11th_hour_' . $session_type)) }} {{ Form::label('11th_hour_' . $session_type, '11th hour') }}
{{ Form::text('12th_hour_' . $session_type, $edit_mode ? $category->getPlanPrice('12th_hour', $session_type) : Input::get('12th_hour', 0), array('class' => 'form-control', 'id' => '12th_hour_' . $session_type)) }} {{ Form::label('12th_hour_' . $session_type, '12th hour') }}
{{ Form::text('over_night_' . $session_type, $edit_mode ? $category->getPlanPrice('over_night', $session_type) : Input::get('over_night', 0), array('class' => 'form-control', 'id' => 'over_night_' . $session_type)) }} {{ Form::label('over_night_' . $session_type, 'over night') }}
{{ Form::text('1st_day_' . $session_type, $edit_mode ? $category->getPlanPrice('1st_day', $session_type) : Input::get('1st_day', 0), array('class' => 'form-control', 'id' => '1st_day_' . $session_type)) }} {{ Form::label('1st_day_' . $session_type, '1st day') }}
{{ Form::text('2nd_day_' . $session_type, $edit_mode ? $category->getPlanPrice('2nd_day', $session_type) : Input::get('2nd_day', 0), array('class' => 'form-control', 'id' => '2nd_day_' . $session_type)) }} {{ Form::label('2nd_day_' . $session_type, '2nd day') }}
{{ Form::text('extra_day_' . $session_type, $edit_mode ? $category->getPlanPrice('extra_day', $session_type) : Input::get('extra_day', 0), array('class' => 'form-control', 'id' => 'extra_day_' . $session_type)) }} {{ Form::label('extra_day_' . $session_type, 'extra day') }}
{{ Form::text('1st_day_' . $session_type, $edit_mode ? $category->getPlanPrice('1st_day', $session_type) : Input::get('1st_day', 0), array('class' => 'form-control', 'id' => '1st_day_' . $session_type)) }} {{ Form::label('1st_day_' . $session_type, '1st day') }}
{{ Form::text('2nd_day_' . $session_type, $edit_mode ? $category->getPlanPrice('2nd_day', $session_type) : Input::get('2nd_day', 0), array('class' => 'form-control', 'id' => '2nd_day_' . $session_type)) }} {{ Form::label('2nd_day_' . $session_type, '2nd day') }}
{{ Form::text('3rd_day_' . $session_type, $edit_mode ? $category->getPlanPrice('3rd_day', $session_type) : Input::get('3rd_day', 0), array('class' => 'form-control', 'id' => '3rd_day_' . $session_type)) }} {{ Form::label('3rd_day_' . $session_type, '3rd day') }}
{{ Form::text('4th_day_' . $session_type, $edit_mode ? $category->getPlanPrice('4th_day', $session_type) : Input::get('4th_day', 0), array('class' => 'form-control', 'id' => '4th_day_' . $session_type)) }} {{ Form::label('4th_day_' . $session_type, '4th day') }}
{{ Form::text('5th_day_' . $session_type, $edit_mode ? $category->getPlanPrice('5th_day', $session_type) : Input::get('5th_day', 0), array('class' => 'form-control', 'id' => '5th_day_' . $session_type)) }} {{ Form::label('5th_day_' . $session_type, '5th day') }}
{{ Form::text('6th_day_' . $session_type, $edit_mode ? $category->getPlanPrice('6th_day', $session_type) : Input::get('6th_day', 0), array('class' => 'form-control', 'id' => '6th_day_' . $session_type)) }} {{ Form::label('6th_day_' . $session_type, '6th day') }}
{{ Form::text('7th_day_' . $session_type, $edit_mode ? $category->getPlanPrice('7th_day', $session_type) : Input::get('7th_day', 0), array('class' => 'form-control', 'id' => '7th_day_' . $session_type)) }} {{ Form::label('7th_day_' . $session_type, '7th day') }}
{{ Form::text('8th_day_' . $session_type, $edit_mode ? $category->getPlanPrice('8th_day', $session_type) : Input::get('8th_day', 0), array('class' => 'form-control', 'id' => '8th_day_' . $session_type)) }} {{ Form::label('8th_day_' . $session_type, '8th day') }}
{{ Form::text('9th_day_' . $session_type, $edit_mode ? $category->getPlanPrice('9th_day', $session_type) : Input::get('9th_day', 0), array('class' => 'form-control', 'id' => '9th_day_' . $session_type)) }} {{ Form::label('9th_day_' . $session_type, '9th day') }}
{{ Form::text('10th_day_' . $session_type, $edit_mode ? $category->getPlanPrice('10th_day', $session_type) : Input::get('10th_day', 0), array('class' => 'form-control', 'id' => '10th_day_' . $session_type)) }} {{ Form::label('10th_day_' . $session_type, '10th day') }}
{{ Form::text('11th_day_' . $session_type, $edit_mode ? $category->getPlanPrice('11th_day', $session_type) : Input::get('11th_day', 0), array('class' => 'form-control', 'id' => '11th_day_' . $session_type)) }} {{ Form::label('11th_day_' . $session_type, '11th day') }}
{{ Form::text('12th_day_' . $session_type, $edit_mode ? $category->getPlanPrice('12th_day', $session_type) : Input::get('12th_day', 0), array('class' => 'form-control', 'id' => '12th_day_' . $session_type)) }} {{ Form::label('12th_day_' . $session_type, '12th day') }}
{{ Form::text('13th_day_' . $session_type, $edit_mode ? $category->getPlanPrice('13th_day', $session_type) : Input::get('13th_day', 0), array('class' => 'form-control', 'id' => '13th_day_' . $session_type)) }} {{ Form::label('13th_day_' . $session_type, '13th day') }}
{{ Form::text('14th_day_' . $session_type, $edit_mode ? $category->getPlanPrice('14th_day', $session_type) : Input::get('14th_day', 0), array('class' => 'form-control', 'id' => '14th_day_' . $session_type)) }} {{ Form::label('14th_day_' . $session_type, '14th day') }}
{{ Form::text('extra_day_' . $session_type, $edit_mode ? $category->getPlanPrice('extra_day', $session_type) : Input::get('extra_day', 0), array('class' => 'form-control', 'id' => 'extra_day_' . $session_type)) }} {{ Form::label('extra_day_' . $session_type, 'extra day') }}
@endforeach
{{ Form::label('category_specification', 'Specification') }} {{ Form::textarea('category_specification', $edit_mode ? $category->specification : Input::get('category_specification'), array('class' => 'form-control', 'id' => 'summernote_1')) }}
{{ Form::label('category_image') }} {{ Form::file('category_image') }}

@if ($edit_mode && $category->image)
@endif
Cancel {{ Form::button(' Save', array('type' => 'submit', 'class' => 'btn btn-lg green')) }}
{{ Form::close() }}
@stop @section('scripts') @parent @stop