@extends('layouts.main') @section('content') @if($option == "View") @endif {!! Form::model($event, ['url' => 'events/save', 'class' => 'form-horizontal', 'autocomplete' => 'off', 'id' => 'groupForm', 'files' => true]) !!}
@if(Session::has('unauthorize'))
× {{ Session::get('unauthorize') }}
@endif @if(Session::has('update'))
× {{ Session::get('update') }}
@endif @if(Session::has('success'))
× {{ Session::get('success') }}
@endif

{{ $data['page'] }} | {{ $option }} @if($option == 'View' && $event->u_id == Auth::user()->u_id)| Edit@elseif($option == 'Edit')| View @endif

Event Details

{!! Form::hidden('id', $id) !!} {!! Form::hidden('option', $option) !!}
{!! Form::text('e_name', null, ['class' => 'form-control input-sm align-form', 'data-validation' => 'required', 'data-validation-error-msg-container' => '#c_name', $option == 'View' ? 'readonly' : '']) !!}
{{ $errors->first('e_name') }}
{!! Form::text('e_type', null, ['class' => 'form-control input-sm', 'id' => 'type', 'data-validation' => 'required', 'data-validation-error-msg-container' => '#e_type']) !!}
{{ $errors->first('e_type') }}
{!! Form::text('e_start_date', null, ['class' => 'form-control input-sm', 'data-validation' => 'required', 'data-validation-error-msg-container' => '#e_start_date', 'id' => 'e_start_date', 'maxlength' => '10', 'required', 'placeholder' => 'Start Date', 'readonly']) !!}
{{ $errors->first('e_start_date') }}
@if($option == 'Add') @elseif($option == 'Edit') @elseif($option == 'View') @endif
{{ $errors->first('e_start_time') }}
{!! Form::text('e_end_date', null, ['class' => 'form-control input-sm', 'data-validation' => 'required', 'data-validation-error-msg-container' => '#e_end_date', 'id' => 'e_end_date', 'maxlength' => '10', 'required', 'placeholder' => 'End Date', 'readonly']) !!}
{{ $errors->first('e_end_date') }}
@if($option == 'Add') @elseif($option == 'Edit') @elseif($option == 'View') @endif
{{ $errors->first('e_end_time') }}
@if($option == 'Add' || $option == 'Edit')
@else
@endif {{ $errors->first('e_keywords') }}
@if($option == 'Add' || $option == 'Edit')
@else
@endif {{ $errors->first('e_keywords') }}
@if($option != 'View') {!! Form::text('e_venue', null, ['class' => 'form-control input-sm align-form', 'id' => 'venue', 'data-validation' => 'required', 'data-validation-error-msg-container' => '#e_venue', $option == 'View' ? 'readonly' : '']) !!}
@else {!! Form::text('e_venue', null, ['class' => 'form-control input-sm align-form', 'id' => 'venue', $option == 'View' ? 'readonly' : '']) !!}
@endif {{ $errors->first('e_venue') }}
@if($option == 'Edit')
{!! Form::button(' Save', ['class' => 'btn btn-primary btn-sm', 'type' => 'submit']) !!} Cancel
@endif @if($option == 'Add')

Attachment Details

{!! Form::file('ea_file[]', ['class' => 'align-form', 'multiple'=>true]) !!}
{{ $errors->first('ea_file') }}
@else

File Attachments

@if($files->isEmpty())
No file attachment(s) found.
@else @if($event->u_id == Auth::user()->u_id) @endif @foreach($files as $file) @endforeach
Filename Date Attached
{{ basename($file->ea_file) }} {{ date('F d, Y h:i A', strtotime($file->created_at)) }} @if($event->u_id == Auth::user()->u_id) @endif
@if($files->render()) @endif @endif
@endif @if($option == 'View' || $option == 'Edit')

Attendees

@if($attendees->isEmpty())
No attendee(s) found.
@else @if($event->e_confirm == 1) @endif @foreach($attendees as $attendee) @if($event->e_confirm == 1) @endif @endforeach
Name Date InvitedWill Be Going
{{ $attendee->seen->u_lname }}, {{ $attendee->seen->u_fname }} {{ date('F d, Y h:i A', strtotime($attendee->created_at)) }} @if($attendee->es_confirmed == 1) @elseif($attendee->es_confirmed == 0)
Reason: {{ $attendee->es_reason}} @elseif($attendee->es_confirmed == 99) No confirmation yet. @endif
@if(Auth::user()->u_id == $event->u_id) @endif
@if($attendees->render()) @endif @endif
@endif @if($option != 'View')

Notification Details




@if($option == 'Add')
@elseif($option == 'Edit')
@else @if($event->e_confirm == 1) {!! Form::text('e_confirm', 'Yes', ['class' => 'form-control input-sm align-form', $option == 'View' ? 'readonly' : '']) !!} @else {!! Form::text('e_confirm', 'No', ['class' => 'form-control input-sm align-form', $option == 'View' ? 'readonly' : '']) !!} @endif @endif

@if($option == 'Add') {!! Form::button(' Save', ['class' => 'btn btn-primary btn-sm', 'type' => 'submit']) !!} Cancel @else {!! Form::button(' Notify Other Employees', ['class' => 'btn btn-primary btn-sm', 'type' => 'submit']) !!} Back To Events @endif
@endif @if($option == 'View')