@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
{!! Form::label('category_id', 'Category *:',array('class'=>'form-label','for'=>'category_id'),false) !!} {!! Form::select('category_id', $categories, null, ['class' => 'form-control','id'=>'category_id', 'placeholder' => 'Select']) !!}
@if ($errors->has('category_id')) {{ $errors->first('category_id') }} @endif
{!! Form::label('title', 'Title *:',array('class'=>'form-label','for'=>'title'),false) !!} {!! Form::text('title', null, ['class' => 'form-control','id'=>'title']) !!}
@if ($errors->has('title')) {{ $errors->first('title') }} @endif
{!! Form::label('calculate_send_date', 'Send Date (calculation) *:',array('class'=>'form-label','for'=>'calculate_send_date'),false) !!} Enter number of days from Cruise Start Date (enter “-“ to calculate days prior to Start Date)
@if ($errors->has('calculate_send_date')) {{ $errors->first('calculate_send_date') }} @endif
{!! Form::label('message', 'Message *:',array('class'=>'form-label','for'=>'message'),false) !!} {!! Form::textarea('message', null, ['class' => 'form-control','id'=>'message','placeholder'=>'Enter message','rows' => 15]) !!}
@if ($errors->has('message')) {{ $errors->first('message') }} @endif 500 characters remaining
{!! 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
adjust_time_zone == 1)) ? "checked" : null}}> {!! Form::label('adjust_time_zone', 'Adjust for Time Zone?',array('class'=>'form-label','for'=>'adjust_time_zone'),false) !!}
@if ($errors->has('adjust_time_zone')) {{ $errors->first('adjust_time_zone') }} @endif
arrow_back Back {!! Form::close() !!}
@endsection @section('scripts') @endsection