@extends('admin.layouts.layout', ['title' => $module.(($tour_details)?' - '.$tour_details->file_name:'')]) @section('css') @endsection @section('main')
@if($id) {!! Form::model($data, [ 'method' => 'PATCH', 'route' => [$form['route'], $id], 'class' => 'form-horizontal', 'id' => 'notification_send', 'enctype'=>'multipart/form-data' ]) !!} @else {!! Form::open(array('route' => $form['route'],'method'=>'POST','id' => 'notification_send','enctype'=>'multipart/form-data')) !!} @endif @php($readonly = ($id)?'readonly':'') @php($user_role = \Auth::user()->roles->role_id) @php($tourDetails = ($tour_details)?0:1) @php($existing_user_type = ($id) ? explode(',',$data->user_type) : [])
@if($tourDetails==1)
{!! Form::label('all_users', 'All Users',array('class'=>'form-label','for'=>'all_users'),false) !!}
@endif @php($labelPrefix = ($tourDetails == 1)?'All Guests':'Guests on this Cruise')
{!! Form::label('guests_only', $labelPrefix,array('class'=>'form-label','for'=>'guests'),false) !!}
@php($labelPrefix = ($tourDetails == 1)?'All Staff':'Staff on this Cruise')
{!! Form::label('staff_only', $labelPrefix ,array('class'=>'form-label','for'=>'staff_only'),false) !!}
@if(!$tourDetails)
{!! Form::label('gl_only', 'GL on this Cruise' ,array('class'=>'form-label','for'=>'gl_only'),false) !!}
@endif @php($guest_none = ($tourDetails == 1)?'':'d-none') {{--
{!! Form::label('group_leader_only', 'All Group Leaders',array('class'=>'form-label','for'=>'group_leader_only'),false) !!}
--}}
@if ($errors->has('user_type')) {{ $errors->first('user_type') }} @endif
@if($tour_details)
{!! Form::label('cruise_name', 'Ship:',array('class'=>'form-label','for'=>'cruise_name'),false) !!} @php($cruiseName = isset($tour_details->cruise->name)?$tour_details->cruise->name:null) {!! Form::text('cruise_name', $cruiseName, ['class' => 'form-control','id'=>'cruise_name','readonly'=>'readonly']) !!}
{!! Form::label('tour_name', 'Cruise:',array('class'=>'form-label','for'=>'tour_name'),false) !!} @php($TourName = isset($tour_details->file_name)?$tour_details->file_name:null) {!! Form::text('tour_name', $TourName, ['class' => 'form-control','id'=>'tour_name','readonly'=>'readonly']) !!}
@else
{!! Form::label('cruise_id', 'Ship:',array('class'=>'form-label','for'=>'cruise_id'),false) !!} @php($cruises = \App\Helpers\Helper::getCruise()) {!! Form::select('cruise_id', $cruises, null, ['class' => 'form-control','id'=>'cruise_id','placeholder'=>'Select']) !!}
@if ($errors->has('cruise_id')) {{ $errors->first('cruise_id') }} @endif
{!! Form::label('tour_id', 'Cruise:',array('class'=>'form-label','for'=>'tour_id'),false) !!} @php($tours = \App\Helpers\Helper::getTours())
@if ($errors->has('tour_id')) {{ $errors->first('tour_id') }} @endif
@endif
status == "1") ? "checked":"")}}>
status == "0") ? "checked":"")}}>
{!! Form::label('message', 'Message *:',array('class'=>'form-label','for'=>'message'),false) !!} {!! Form::textarea('message', null, ['class' => 'form-control','id'=>'message','placeholder'=>'Enter message']) !!}
@if ($errors->has('message')) {{ $errors->first('message') }} @endif 500 characters remaining
{{date('m-d-Y')}} - {{date('h:i:s A')}}
({{date('l')}})
{{--{!! Form::label('current_date', 'Current Date & Time:',array('class'=>'','for'=>'current_date'),false) !!} --}}
{!! Form::label('schedule_date', 'Schedule Date *:',array('class'=>'form-label','for'=>'schedule_date'),false) !!}
@if ($errors->has('schedule_date')) {{ $errors->first('schedule_date') }} @endif
{!! Form::label('schedule_time', 'Scheduled Time (EST) *:',array('class'=>'form-label','for'=>'schedule_time'),false) !!}
@if ($errors->has('schedule_time')) {{ $errors->first('schedule_time') }} @endif
arrow_back Back {!! Form::close() !!}
@endsection @section('scripts') @endsection