• {{ __('Admin') }}
  • {{ __('Events') }}
  • {{ __('Detail') }}
  • Create Event

    {!!Form::open(['route' => 'admin.events.store', 'method' => 'post'])!!} {{Form::hidden('description', "Desc")}}
    {{Form::label('name', 'Name*', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::text('name', null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', 'required' => true, $errors->has('name') ? 'is-invalid' : null])}} @if($errors->has('name'))

    {{$errors->first('name')}}

    @endif
    {{Form::label('slug', 'Slug* (all lower case, no spaces, hyphen "-" for spaces. Best practice: use full title as slug)', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::text('slug', null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', 'required' => true, $errors->has('slug') ? 'is-invalid' : null])}} @if($errors->has('slug'))

    {{$errors->first('slug')}}

    @endif
    {{Form::label('audio_filename', 'Audio Filename', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::text('audio_filename', null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', 'required' => false, $errors->has('audio_filename') ? 'is-invalid' : null])}} @if($errors->has('audio_filename'))

    {{$errors->first('audio_filename')}}

    @endif
    {{Form::label('start_at', 'Start Date/Time*', ['class'=>'control-label dark:text-slate-300 text-l'])}} @if($errors->has('start_at'))

    {{$errors->first('start_at')}}

    @endif
    {{Form::label('duration', 'Duration*', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::text('duration', "1", ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', 'required' => true, $errors->has('duration') ? 'is-invalid' : null])}} @if($errors->has('duration'))

    {{$errors->first('duration')}}

    @endif
    {{Form::label('table_count', 'Table count', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::text('table_count', '0', ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', 'required' => false, $errors->has('table_count') ? 'is-invalid' : null])}} @if($errors->has('table_count'))

    {{$errors->first('table_count')}}

    @endif
    {{Form::label('event_type_id', 'Event type*', ['class'=>'control-label dark:text-slate-300 text-l'])}} @if(isset($_GET['type'])) {{Form::select('event_type_id', $event_types, $_GET['type'], ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', $errors->has('event_type_id') ? 'is-invalid' : null])}} @else {{Form::select('event_type_id', $event_types, null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', $errors->has('event_type_id') ? 'is-invalid' : null])}} @endif @if($errors->has('event_type_id'))

    {{$errors->first('event_type_id')}}

    @endif
    {{Form::label('affiliation_type_id', 'Affiliation type*', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::select('affiliation_type_id', $affiliation_types, null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', $errors->has('affiliation_type_id') ? 'is-invalid' : null])}} @if($errors->has('affiliation_type_id'))

    {{$errors->first('affiliation_type_id')}}

    @endif
    {{Form::label('location_id', 'Location (Room where this event will be held)', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::select('location_id', $locations, null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900' .($errors->has('location_id') ? 'is-invalid' : null), 'placeholder' => 'Select'])}} @if($errors->has('location_id'))

    {{$errors->first('location_id')}}

    @endif
    {{Form::label('area_meeting_id', 'Area Meeting (Host Group for marathons)', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::select('area_meeting_id', $area_meetings, null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', $errors->has('area_meeting_id') ? 'is-invalid' : null, 'placeholder' => 'Select'])}} @if($errors->has('area_meeting_id'))

    {{$errors->first('area_meeting_id')}}

    @endif
    {{--
    {{Form::label('description', 'Description*', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::textarea('description', "Desc", ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', 'required' => true, $errors->has('description') ? 'is-invalid' : null])}} @if($errors->has('description'))

    {{$errors->first('description')}}

    @endif
    --}} {{--
    {{Form::label('group_id', 'Group', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::select('group_id', $groups, null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', $errors->has('group_id') ? 'is-invalid' : null])}} @if($errors->has('group_id'))

    {{$errors->first('group_id')}}

    @endif
    --}}
    {{Form::checkbox('is_program', 1, true)}} {{Form::label('is_program', 'Include in Program?', ['class'=>'control-label dark:text-slate-300 text-l'])}}
    {{Form::checkbox('is_timeline', 1, true)}} {{Form::label('is_timeline', 'Include on timeline?', ['class'=>'control-label dark:text-slate-300 text-l'])}}
    {{Form::checkbox('published', 1, true)}} {{Form::label('published', 'Publish this event?', ['class'=>'control-label dark:text-slate-300 text-l'])}}
    {!!Form::close()!!}