<commit_before>@extends('layouts.app')

@section('css')
@parent
<link rel="stylesheet" href="{{ asset('css/forms.css') }}">
@endsection

@section('content')
{!! Form::open(['route' => ['user.booking.store', 'business'], 'class' => 'form']) !!}
{!! Form::hidden('businessId', $business->id, ['required', 'id' => 'business']) !!}
{!! Form::hidden('_date', null, ['required', 'id'=>'date', 'min'=> date('Y-m-d')]) !!}
{!! Form::hidden('service_id', null, ['required', 'id'=>'service']) !!}
{!! Form::hidden('contact_id', $contact->id, ['required', 'id'=>'contact']) !!}

<div class="container-fluid">
    <div class="col-md-6 col-md-offset-3">

        <div class="row">
            {!! Alert::info(trans('user.appointments.alert.book_in_biz_on_behalf_of', ['biz' => $business->name, 'contact' => $contact->fullname()])) !!}
        </div>

        <div class="row">
            @include('user.appointments.timeslot._timetable', ['dates' => $availability])
        </div>

        <div id="extra" class="hidden">
            <div class="row">
                <div class="form-group col-sm-12">
                    {!! Form::label(trans('user.appointments.form.duration.label')) !!}
                    {!! Form::text('duration', null, [
                        'readonly',
                        'id'=>'duration',
                        'class'=>'form-control',
                        'placeholder'=> trans('user.appointments.form.duration.label')
                        ]) !!}
                </div>
            </div>

            <div class="row">
                <div class="form-group col-sm-12">
                    <label for="comments">{{ trans('user.appointments.form.time.label') }}</label>
                    <br/>
                    <select id="times" name="_time" class="form-control"></select><commit_msg>Make duration input field editable only when explicitly specified<commit_after>@extends('layouts.app')

@section('css')
@parent
<link rel="stylesheet" href="{{ asset('css/forms.css') }}">
@endsection

@section('content')
{!! Form::open(['route' => ['user.booking.store', 'business'], 'class' => 'form']) !!}
{!! Form::hidden('businessId', $business->id, ['required', 'id' => 'business']) !!}
{!! Form::hidden('_date', null, ['required', 'id'=>'date', 'min'=> date('Y-m-d')]) !!}
{!! Form::hidden('service_id', null, ['required', 'id'=>'service']) !!}
{!! Form::hidden('contact_id', $contact->id, ['required', 'id'=>'contact']) !!}

<div class="container-fluid">
    <div class="col-md-6 col-md-offset-3">

        <div class="row">
            {!! Alert::info(trans('user.appointments.alert.book_in_biz_on_behalf_of', ['biz' => $business->name, 'contact' => $contact->fullname()])) !!}
        </div>

        <div class="row">
            @include('user.appointments.timeslot._timetable', ['dates' => $availability])
        </div>

        <div id="extra" class="hidden">
            <div class="row">
                <div class="form-group col-sm-12">
                @if(isset($canEditDuration))
                    {!! Form::label(trans('user.appointments.form.duration.label_edit')) !!}
                    {!! Form::text('duration', null, [
                        'id'=>'duration',
                        'class'=>'form-control',
                        'placeholder'=> trans('user.appointments.form.duration.label')
                        ]) !!}
                @endif
                </div>
            </div>

            <div class="row">
                <div class="form-group col-sm-12">
                    <label for="comments">{{ trans('user.appointments.form.time.label') }}</label>
                    <br/>
                    <select id="times" name="_time" class="form-control"></select>
{'fraction_non_alphanumeric': 0.22341280471470668, 'fraction_numerical': 0.0032145727297080095, 'mean_word_length': 2.4194139194139193, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 75, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6269110', 'n_tokens_mistral': 1123, 'n_tokens_neox': 1083, 'n_words': 176}