@extends('admin.layouts.app') @push('styles_top') @endpush @section('content') {{ $pageTitle }} {{trans('admin/main.dashboard')}} {{ $pageTitle }} {{ csrf_field() }} {!! trans('admin/main.title') !!} @error('title') {{ $message }} @enderror {!! trans('admin/main.type') !!} @foreach(\App\Models\Notification::$notificationsType as $type) type == $type) selected @endif>{{ trans('admin/main.notification_'.$type) }} @endforeach @error('type') {{ $message }} @enderror {{ trans('admin/main.new_notification_hint') }} {{ trans('admin/main.user') }} @if(!empty($notification) and !empty($notification->user)) {{ $notification->user->full_name }} @endif @error('user_id') {{ $message }} @enderror {{ trans('admin/main.course') }} @if(!empty($notification) and !empty($notification->webinar)) {{ $notification->webinar->title }} @endif @error('webinar_id') {{ $message }} @enderror {{ trans('admin/main.group') }} @foreach($userGroups as $userGroup) group) and $notification->group->id == $userGroup->id) selected @endif>{{ $userGroup->name }} @endforeach @error('group_id') {{ $message }} @enderror {{ trans('admin/main.message') }} {{ (!empty($notification)) ? $notification->message :'' }} @error('message') {{ $message }} @enderror {{ trans('notification.send_notification') }} @endsection @push('scripts_bottom') @endpush