@extends('layouts.page') @section('title') User Notification Edit Notification @endsection @section('navs') @endsection @section('content')
{{ Form::open(['url' => route('user_notification.update', $notification->id)]) }}
{!! Form::select('module_name', ['' => '']+DataHelper::moduleNameOptions()+AppHelper::options('module_types'), $notification->module_type, [ 'required' => true, 'id' => 'module_name', 'class' => 'form-control']) !!}
{!! Form::select('flow', AppHelper::dropdown($notification->module_type, 'flows'), $notification->flow, ['required' => true, 'id' => 'flow', 'class' => 'form-control']) !!} @include ('common.dependent', ['parent' => 'module_name', 'child' => 'flow', 'flow' => AppHelper::options('flows')])
{!! Form::select('role_type[]', ['' => '']+AppHelper::options('user_roles'), explode(',',$notification->role_type), ['class' => 'form-control', 'multiple' => true]) !!}
{!! Form::select('user', ['' => '']+AppHelper::options('notify_user_types'), $notification->user, ['class' => 'form-control']) !!}
{!! Form::select('department', ['' => '']+AppHelper::options('notify_dept_types'), $notification->department, ['class' => 'form-control']) !!}
{!! Form::select('status[]', AppHelper::options($notification->flow.'s'), explode(',',$notification->status), [ 'required' => true, 'class' => 'form-control', 'multiple' => true, 'id' => 'status']) !!}
{!! Form::select('next_status[]', AppHelper::options($notification->flow.'s'), explode(',',$notification->next_status), [ 'required' => true, 'class' => 'form-control', 'multiple' => true, 'id' => 'next_status']) !!}
{!! Form::select('show_notification', AppHelper::options('yes_no_list'), explode(',',$notification->show_notification), [ 'required' => true, 'class' => 'form-control', 'id' => 'show_notification']) !!}
{{ Form::close() }}
@endsection