{{ Form::hidden('delete_hour_url', action('BusinessHourController@destroy', [
'business_hour' => $business_hour->business_hour
]), ['id' => 'delete_hour_url'] ) }}
{{ Form::hidden('get_hour_url', action('BusinessHourController@business_hour', [
'business' => $business->business, 'bl' => 'XXX' ]), ['id' => 'get_hour_url'] ) }}
{{ Form::hidden('update_hour_url', action('BusinessHourController@update', [
'business_hour' => $business_hour->business_hour
]), ['id' => 'update_hour_url'] ) }}
{{ Form::hidden('create_hour_url', action('BusinessHourController@store', [
'bl' => $business_hour->business_location,
]), ['id' => 'create_hour_url'] ) }}
{{ Form::label_title("Weekly Schedule") }}
{{ Form::select_with_label('business_hour', $current_hour, $business_hours,
5, null, "Hours", 2, "on_change_hours();", "business_hour_select" ) }}
@if (!isset($business_hour->business_hour))
{{ Form::label_inline('Start Date', null, 2, \App\Helpers\FormComponentHelper::SIZE_LARGE) }}
{{ Form::date_ex('start', old('start', Carbon\Carbon::today()->format('m/d/Y')), 3, 'start', 'Start Date') }}
@endif
{{ Form::separator_row() }}
{{ Form::checkbox_row('show_open', $business_hour->show_open,
'Show the "OPEN" graphic on your home page when your hours indicate you are currently open?') }}
{{ Form::checkbox_row('open_all_day', $business_hour->open_all_day, 'Open 24 Hours') }}
{{ Form::hidden('hour_set_value', $business_hour->hour_set, ['id' => 'hour_set_value']) }}
{{ Form::checkbox_row('hour_set', $business_hour->hour_set, 'We have more than one set of hours of operation on each day.',
null, 'hour_set_checkbox' ) }}
@include('business.hours._hours_of_operation', ['title'=>'Sunday', 'fieldname'=>'sunday', 'hours_of_operation'=>$hours_of_operation,
'open'=>$business_hour->sunday_open,'close'=>$business_hour->sunday_close,
'open_ext'=>$business_hour->sunday_open_ext,'close_ext'=>$business_hour->sunday_close_ext,
'appt_only'=>$business_hour->sunday_appt_only])
@include('business.hours._hours_of_operation', ['title'=>'Monday', 'fieldname'=>'monday', 'hours_of_operation'=>$hours_of_operation,
'open'=>$business_hour->monday_open,'close'=>$business_hour->monday_close,
'open_ext'=>$business_hour->monday_open_ext,'close_ext'=>$business_hour->monday_close_ext,
'appt_only'=>$business_hour->monday_appt_only])
@include('business.hours._hours_of_operation', ['title'=>'Tuesday', 'fieldname'=>'tuesday', 'hours_of_operation'=>$hours_of_operation,
'open'=>$business_hour->tuesday_open,'close'=>$business_hour->tuesday_close,
'open_ext'=>$business_hour->tuesday_open_ext,'close_ext'=>$business_hour->tuesday_close_ext,
'appt_only'=>$business_hour->tuesday_appt_only])
@include('business.hours._hours_of_operation', ['title'=>'Wednesday', 'fieldname'=>'wednesday', 'hours_of_operation'=>$hours_of_operation,
'open'=>$business_hour->wednesday_open,'close'=>$business_hour->wednesday_close,
'open_ext'=>$business_hour->wednesday_open_ext,'close_ext'=>$business_hour->wednesday_close_ext,
'appt_only'=>$business_hour->wednesday_appt_only])
@include('business.hours._hours_of_operation', ['title'=>'Thursday', 'fieldname'=>'thursday', 'hours_of_operation'=>$hours_of_operation,
'open'=>$business_hour->thursday_open,'close'=>$business_hour->thursday_close,
'open_ext'=>$business_hour->thursday_open_ext,'close_ext'=>$business_hour->thursday_close_ext,
'appt_only'=>$business_hour->thursday_appt_only])
@include('business.hours._hours_of_operation', ['title'=>'Friday', 'fieldname'=>'friday', 'hours_of_operation'=>$hours_of_operation,
'open'=>$business_hour->friday_open,'close'=>$business_hour->friday_close,
'open_ext'=>$business_hour->friday_open_ext,'close_ext'=>$business_hour->friday_close_ext,
'appt_only'=>$business_hour->friday_appt_only])
@include('business.hours._hours_of_operation', ['title'=>'Saturday', 'fieldname'=>'saturday', 'hours_of_operation'=>$hours_of_operation,
'open'=>$business_hour->saturday_open,'close'=>$business_hour->saturday_close,
'open_ext'=>$business_hour->saturday_open_ext,'close_ext'=>$business_hour->saturday_close_ext,
'appt_only'=>$business_hour->saturday_appt_only])
{{ Form::separator_row_bottom() }}
{{ Form::button_right("Cancel", "close_form();" ) }}
@if($business_hour->business_hour)
{{ Form::button_right("Delete", "delete_business_hour();" ) }}
{{ Form::button_right("Update", "save_business_hour(0);" ) }}
{{ Form::button_right("Save", "save_business_hour(1);" ) }}
@else
{{ Form::button_right("Update", "create_business_hour(0);" ) }}
{{ Form::button_right("Save", "create_business_hour(1);" ) }}
@endif