@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::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_startdate', null, ['class' => 'form-control input-sm', 'data-validation' => 'required', 'data-validation-error-msg-container' => '#e_startdate', 'id' => 'e_startdate', 'maxlength' => '10', 'required', 'placeholder' => 'Start Date', 'readonly']) !!}
{{ $errors->first('e_startdate') }}
{{ $errors->first('e_starttime') }}
{!! Form::text('e_enddate', null, ['class' => 'form-control input-sm', 'data-validation' => 'required', 'data-validation-error-msg-container' => '#e_enddate', 'id' => 'e_enddate', 'maxlength' => '10', 'required', 'placeholder' => 'End Date', 'readonly']) !!}
{{ $errors->first('e_enddate') }}
{{ $errors->first('e_endtime') }}
@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']) !!}
{{ $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 @foreach($attendees as $attendee) @endforeach
Name Date Invited
{{ $attendee->seen->u_lname }}, {{ $attendee->seen->u_fname }} {{ date('F d, Y h:i A', strtotime($attendee->created_at)) }} @if(Auth::user()->u_id == $event->u_id) @endif
@if($attendees->render()) @endif @endif
@endif @if($option != 'View')

Notification Details


@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')

Comment Thread

@if(count($comments) == 0)

NO COMMENTS

@else
    @endif

Leave A Comment

{!! Form::textarea('comm_text', NULL, ['class' => 'form-control input-sm', 'size' => '10x7']) !!}
{!! Form::button(' Submit Comment', ['class' => 'btn btn-primary btn-sm', 'type' => 'submit']) !!} Cancel
@if(count($seens) != 0)
@foreach($seens as $seen)

Last seen by {{ $seen->seen->u_fname }} on {{ date('F d, Y H:i A', strtotime($seen->updated_at)) }}

@endforeach
@endif
@endif {!! Form::open(['url'=>'event/update_comment', 'class'=>'form']) !!} {!! Form::close() !!}
{!! Form::close() !!}
@stop