@extends('layouts.main') @section('content') @if($option == 'View') @endif {!! Form::model($schedule, ['url' => 'rd_schedule/save', 'class' => 'form-horizontal', 'autocomplete' => 'off', 'id' => 'groupForm', 'files' => 'true']) !!}

Meeting Details

{!! Form::hidden('id', $id) !!} {!! Form::hidden('page', $data['page']) !!} {!! Form::hidden('option', $option) !!}
@if($option == 'Add' || $option == 'Edit') {!! Form::text('m_startdate', null, ['class' => 'form-control input-sm', 'data-validation' => 'required', 'data-validation-error-msg-container' => '#m_startdate', 'id' => 'm_startdate', 'maxlength' => '10', 'required', 'placeholder' => 'Start Date', 'readonly']) !!} @else {!! Form::text('m_startdate', Carbon\Carbon::parse($schedule->m_startdate)->format('F d, Y'), ['class' => 'form-control input-sm', 'maxlength' => '10', 'required', 'placeholder' => 'Date', 'readonly']) !!} @endif
{{ $errors->first('m_startdate') }}
@if($option == 'Add') @elseif($option == 'Edit') @else {!! Form::text('m_starttime', null, ['class' => 'form-control input-sm', 'maxlength' => '10', 'required', 'readonly']) !!} @endif
{{ $errors->first('m_starttime') }}
@if($option == 'Add' || $option == 'Edit') {!! Form::text('m_enddate', null, ['class' => 'form-control input-sm', 'data-validation' => 'required', 'data-validation-error-msg-container' => '#m_enddate', 'id' => 'm_enddate', 'maxlength' => '10', 'required', 'placeholder' => 'Start Date', 'readonly']) !!} @else {!! Form::text('m_enddate', Carbon\Carbon::parse($schedule->m_enddate)->format('F d, Y'), ['class' => 'form-control input-sm', 'maxlength' => '10', 'required', 'placeholder' => 'Date', 'readonly']) !!} @endif
{{ $errors->first('m_enddate') }}
@if($option == 'Add') @elseif($option == 'Edit') @else {!! Form::text('m_endtime', null, ['class' => 'form-control input-sm', 'maxlength' => '10', 'required', 'readonly']) !!} @endif
{{ $errors->first('m_endtime') }}
{!! Form::textarea('m_purpose', NULL, ['class' => 'form-control input-sm', 'size' => '10x5', 'required', $option == 'View' ? 'readonly' : '']) !!}
{{ $errors->first('m_purpose') }}
@if($option == 'Add' || $option == 'Edit') {!! Form::text('m_destination', null, ['class' => 'form-control input-sm', 'id' => 'destination', 'data-validation' => 'required', 'data-validation-error-msg-container' => '#m_destination']) !!} @else {!! Form::text('m_destination', null, ['class' => 'form-control input-sm align-form', 'readonly']) !!} @endif
{{ $errors->first('m_destination') }}
@if($option == 'Add')
@endif
{!! Form::textarea('m_others', NULL, ['class' => 'form-control input-sm', 'size' => '10x5', 'placeholder'=>'Non-DOST participants', $option == 'View' ? 'readonly' : '']) !!}
@if($option != 'View') {!! Form::button(' Save', ['class' => 'btn btn-primary btn-sm', 'type' => 'submit']) !!} @endif Cancel
@if($id != 0 && $schedule->m_postponedby != "" && $option == 'View' && $schedule->m_status == 'Pending')

Proposed New Schedule

{!! Form::hidden('startdate', $schedule->m_tstartdate) !!} {!! Form::hidden('enddate', $schedule->m_tenddate) !!} {!! Form::hidden('starttime', $schedule->m_tstarttime) !!} {!! Form::hidden('endtime', $schedule->m_tendtime) !!} @if($start != $end) {!! Form::text('m_tstartdate', Carbon\Carbon::parse($schedule->m_tstartdate)->format('F d, Y')." to ".Carbon\Carbon::parse($schedule->m_tenddate)->format('F d, Y'), ['class' => 'form-control input-sm', 'maxlength' => '10', 'required', 'placeholder' => 'Date', 'readonly']) !!} @else {!! Form::text('m_tstartdate', Carbon\Carbon::parse($schedule->m_tstartdate)->format('F d, Y'), ['class' => 'form-control input-sm', 'maxlength' => '10', 'required', 'placeholder' => 'Date', 'readonly']) !!} @endif
{!! Form::text('m_tstarttime', $schedule->m_tstarttime." to ".$schedule->m_tendtime, ['class' => 'form-control input-sm', 'maxlength' => '10', 'required', 'readonly']) !!}
@if($schedule->m_postponedby != Auth::user()->u_id)
{!! Form::button(' Approve New Schedule', ['class' => 'btn btn-primary btn-sm', 'type' => 'submit']) !!}
@endif
@endif @if($option == 'View' && $schedule->m_status == 'Canceled')

Reason of Cancelation

{!! Form::textarea('m_reason', NULL, ['class' => 'form-control input-sm', 'size' => '10x5', 'disabled']) !!}
@endif @if($option == 'View' || $option == 'Edit')

Requesting Party

@if($schedule->m_encodedby == Auth::user()->u_id)
{!! Form::button(' Notify Participants', ['class' => 'btn btn-primary btn-sm', 'type' => 'submit']) !!} Back To Meetings

@endif @if($participants->isEmpty())
No existing member(s) found.
@else @if($schedule->m_encodedby == Auth::user()->u_id) @endif @foreach($participants as $participant) @if($schedule->m_encodedby == Auth::user()->u_id) @endif @endforeach
Participant's Name Date Invited
{{ $participant->users->u_lname }}, {{ $participant->users->u_fname }} {{ date('F d, Y h:i A', strtotime($participant->created_at)) }}
@if($participants->render())
{!! $participants->render() !!}
@endif @endif
@endif
{!! Form::close() !!} @stop