@extends('layouts.adminLayout.admin_design') @section('content')

{{ $title }}

{{ Form::open(['url' => route('discountseffective_update' , $discount_id), 'method'=>'post', 'file'=>true, 'name' => 'discounts', 'id' => 'discounts']) }}

{{ $title }}

{{ Form::button(' '.__('lbl.save'), ["name"=>"submit",'class' => 'btn btn-success btn-sm '.$add_edit_allowed.'', 'type' => 'submit']) }} {{ __('lbl.cancel') }}

{{ __('lbl.all') }}

@foreach($effective['all'] as $key => $time)
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('all_start_time', $time->time_from,["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time'),"id"=>"","name"=>"all_start_time[]"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('all_end_time', $time->time_to,["class"=>"form-control timepicker","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"all_end_time[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["data-id_all"=>$key+1,"title"=>"Remove","class"=>"remove_editallitem form-control btn btn-danger btn-sm ".$delete_allowed."", "name"=>"remove_all_item[]"]) }}
@endforeach

{{ __('lbl.monday') }}

@foreach($effective['monday'] as $key => $time)
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('all_start_time', $time->time_from,["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time'),"id"=>"","name"=>"mon_start_time[]"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('all_end_time', $time->time_to,["class"=>"form-control timepicker","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"mon_end_time[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["data-id_mon"=>$key+1,"title"=>"Remove","class"=>"remove_editmonitem form-control btn btn-danger btn-sm ".$delete_allowed."", "name"=>"remove_mon_item[]"]) }}
@endforeach

{{ __('lbl.tuesday') }}

@foreach($effective['tuesday'] as $key => $time)
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('all_start_time', $time->time_from,["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time'),"id"=>"","name"=>"tues_start_time[]"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('all_end_time', $time->time_to,["class"=>"form-control timepicker","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"tues_end_time[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["data-id_tues"=>$key+1,"title"=>"Remove","class"=>"remove_edittuesitem form-control btn btn-danger btn-sm ".$delete_allowed."", "name"=>"remove_tues_item[]"]) }}
@endforeach

{{ __('lbl.wednesday') }}

@foreach($effective['wednesday'] as $key => $time)
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('all_start_time', $time->time_from,["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time'),"id"=>"","name"=>"wednes_start_time[]"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('all_end_time', $time->time_to,["class"=>"form-control timepicker","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"wednes_end_time[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["data-id_wednes"=>$key+1,"title"=>"Remove","class"=>"remove_editwednesitem form-control btn btn-danger btn-sm ".$delete_allowed."", "name"=>"remove_wednes_item[]"]) }}
@endforeach

{{ __('lbl.thursday') }}

@foreach($effective['thursday'] as $key => $time)
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('all_start_time', $time->time_from,["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time'),"id"=>"","name"=>"thurs_start_time[]"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('all_end_time', $time->time_to,["class"=>"form-control timepicker","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"thurs_end_time[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["data-id_thurs"=>$key+1,"title"=>"Remove","class"=>"remove_editthursitem form-control btn btn-danger btn-sm ".$delete_allowed."", "name"=>"remove_thurs_item[]"]) }}
@endforeach

{{ __('lbl.friday') }}

@foreach($effective['friday'] as $key => $time)
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('fri_start_time', $time->time_from,["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time'),"id"=>"","name"=>"fri_start_time[]"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('fri_end_time', $time->time_to,["class"=>"form-control timepicker","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"fri_end_time[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["data-id_fri"=>$key+1,"title"=>"Remove","class"=>"remove_editfriitem form-control btn btn-danger btn-sm ".$delete_allowed."", "name"=>"remove_fri_item[]"]) }}
@endforeach

{{ __('lbl.saturday') }}

@foreach($effective['saturday'] as $key => $time)
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('satur_start_time', $time->time_from,["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time'),"id"=>"","name"=>"satur_start_time[]"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('fri_end_time', $time->time_to,["class"=>"form-control timepicker","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"satur_end_time[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["data-id_satur"=>$key+1,"title"=>"Remove","class"=>"remove_editsaturitem form-control btn btn-danger btn-sm ".$delete_allowed."", "name"=>"remove_fri_item[]"]) }}
@endforeach

{{ __('lbl.sunday') }}

@foreach($effective['sunday'] as $key => $time)
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('sun_start_time', $time->time_from,["class"=>"form-control timepicker","placeholder"=>__('lbl.start_time'),"id"=>"","name"=>"sun_start_time[]"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('sun_end_time', $time->time_to,["class"=>"form-control timepicker","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"sun_end_time[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["data-id_sun"=>$key+1,"title"=>"Remove","class"=>"remove_editsunitem form-control btn btn-danger btn-sm ".$delete_allowed."", "name"=>"remove_sun_item[]"]) }}
@endforeach
{{ Form::button(' '.__('lbl.save'), ["name"=>"submit",'class' => 'btn btn-success btn-sm '.$add_edit_allowed.'', 'type' => 'submit']) }} {{ __('lbl.cancel') }}
{{ Form::close() }}
{{ Form::label(__('lbl.start_time')) }}
{{ Form::text('all_start_time', '',["class"=>"form-control timepicker starttime","placeholder"=>__('lbl.start_time'),"name"=>"all_start_time[]"]) }}
{{ Form::label(__('lbl.end_time')) }}
{{ Form::text('all_end_time', '',["class"=>"form-control timepicker endtime","placeholder"=>__('lbl.end_time'),"id"=>"","name"=>"all_end_time[]"]) }}
{{ Form::label(__('lbl.action')) }}
{{ Form::button('', ["title"=>"Remove","class"=>"remove_editallitem form-control btn btn-danger btn-sm ","id"=>"remove_all_item","name"=>"remove_all_item[]"]) }}
@endsection @section('pagescript') {!! Helper::pagejs([ 'select2/dist/js/select2.full.min.js', 'js/lib/moment/min/moment.min.js', 'js/lib/bootstrap-daterangepicker/daterangepicker.js', 'js/lib/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js', 'js/lib/plugins/timepicker/bootstrap-timepicker.min.js', 'js/backend/discounts/add_edit.js', ]) !!} @stop