@extends('layouts.master') @section('page_title', 'Hours') @section('content') {{ Form::open(["class" => "form-horizontal"]) }}
{{ Form::page_header("Hours", "hours") }}
{{ Form::label_title('Location') }} {{ Form::select_ex('business_location', $bl, \App\Models\Business_Location::business_location_select($business), 4, null, "on_change_location();", 'business_location_select') }}
{{ 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
{{ Form::label_title("Hour Exceptions") }}
{{ Form::label_grey("Add an exception to the above hours for a special event or a holiday.") }}
@foreach($business_hour_exceptions as $business_hour_exception) @include('business.hours._business_hour_exception', [$business_hour_exception]) @endforeach
{{ Form::button_right("ADD AN EXCEPTION", "parent_list_manager.add_one( '". action('BusinessHourExceptionController@create', ['business' => $business->business, 'bl' => $business_hour->business_location] ) ."', parent_selector.calc_new_handle_id() );") }}
{{ Form::close() }} @endsection @section('page_script') {!! Html::script('/js/moment.min.js') !!} {!! Html::script('/js/daterangepicker.js') !!} @include('shared_script._list_manager') @endsection @section('page_style') {!! Html::style('/css/daterangepicker.css') !!} {!! Html::style('/css/daterangepicker_custom.css') !!} @endsection