@extends('layouts.master') @section('page_title', $page_title) @section('content')
{{ Form::page_header($page_title, "hours") }} {{ Form::open(['url' => $post_url]) }}
@if($nobusiness) @if($business_time->business_time) {{ Form::hidden('business', $business->business) }} {{ Form::row_label_inline('Business', $business->company, 'company-label', 2, 10, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} @else {{ Form::row_select_inline('business', 'Business', $business_time->business, \App\Models\Business::business_select(), 2, 4, \App\Helpers\FormComponentHelper::SIZE_MEDIUM, null, 'Select', 'business-search-select') }} @endif @else {{ Form::hidden('business', $business->business) }} {{ Form::hidden('business_ticket', $business_ticket) }} @endif {{ Form::hidden('redirect_url', $redirect_url) }} {{ Form::row_select_inline('time_type', 'Time Type', $business_time->time_type, \App\Models\Time_Type::time_type_select(), 2, 4, \App\Helpers\FormComponentHelper::SIZE_MEDIUM, null, 'Select') }}
{{ Form::label_ex('Hours', \App\Helpers\FormComponentHelper::SIZE_MEDIUM, 'hours', 2) }} {{ Form::number_ex('hours', $business_time->hours, 4, null, true) }}
{{ Form::label_ex('Minutes', \App\Helpers\FormComponentHelper::SIZE_MEDIUM, 'minutes', 2) }} {{ Form::number_ex('minutes', $business_time->minutes, 4) }}
{{ Form::row_textarea_inline('description', 'Description', $business_time->description, 2, 4, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} @if ($nobusiness && $business_time->business == null) {{ Form::row_date_inline('date', 'Date', strtotime($date_pref) ?: \Carbon\Carbon::now()->setTimezone(config('fuse.bt_timezone'))->toDateString(), 2, 3, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} @else {{ Form::row_date_inline('date', 'Date', $business_time->date ?: \Carbon\Carbon::now()->setTimezone(config('fuse.bt_timezone'))->toDateString(), 2, 3, \App\Helpers\FormComponentHelper::SIZE_MEDIUM) }} @endif
{{ Form::button_save() }} {{ Form::hidden('redirect_url', $redirect_url) }} {{ Form::button_link('Cancel', $redirect_url, 'cancel_btn') }} @if($business_time->can_delete()) {{ Form::button_ex('Delete', "delete_time('". action('BusinessTimeController@delete', [$business_time->business_time]) ."')") }} @endif
@endsection @section('page_script') @include('shared_script._select_type_ahead', ['selectors' => ['.business-search-select']]) {{ Html::script('/js/moment.min.js') }} {{ Html::script('/js/daterangepicker.js') }} @endsection @section('page_style') {{ Html::style('/css/daterangepicker.css') }} {{ Html::style('/css/daterangepicker_custom.css') }} @endsection