@extends('layouts.app') @section('title', __('Notification')) @section('content')

Notification

@component('components.widget', ['class' => 'box-primary'])
@csrf
@php $notification = explode(',', $editedNotification->notification_for); $checkedAll = in_array('all', $notification) ? 'checked' : ''; $checkedWeb = in_array('web', $notification) ? 'checked' : ''; $checkedApp = in_array('app', $notification) ? 'checked' : ''; $checkedWhatsapp = in_array('whatsapp', $notification) ? 'checked' : ''; $checkedSms = in_array('sms', $notification) ? 'checked' : ''; $checkedEmail = in_array('email', $notification) ? 'checked' : ''; @endphp All Web App What's App SMS E-mail

{!! Form::label('subject', __('Header').':') !!} {!! Form::textarea('subject', $editedNotification->subject, ['class' => 'form-control', 'placeholder' => __('Subject'), 'rows' => 1]); !!}
{!! Form::label('email_body', __('Body Message').':') !!} {!! Form::textarea('email_body', $editedNotification->body, ['class' => 'form-control', 'placeholder' => __('Body Message'), 'rows' => 4]); !!}

image

@php $imagePlacement = $editedNotification->image_placement; $selectedTop = ($imagePlacement == 'top') ? 'selected' : ''; $selectedBottom = ($imagePlacement == 'bottom') ? 'selected' : ''; $selectedBeforeHeader = ($imagePlacement == 'before_header') ? 'selected' : ''; $selectedAfterHeader = ($imagePlacement == 'after_header') ? 'selected' : ''; $selectedBeforeBodyText = ($imagePlacement == 'before_body_text') ? 'selected' : ''; $selectedAfterBodyText = ($imagePlacement == 'after_body_text') ? 'selected' : ''; @endphp

@php $schedule = $editedNotification->schedule; $selectedDaily = ($schedule == 'daily') ? 'selected' : ''; $selectedWeekly = ($schedule == 'weekly') ? 'selected' : ''; $selectedFornighly = ($schedule == 'fornightly') ? 'selected' : ''; $selectedMonthly = ($schedule == 'monthly') ? 'selected' : ''; $selectedYearly = ($schedule == 'yearly') ? 'selected' : ''; @endphp
@endcomponent {!! Form::close() !!}
@endsection @section('javascript') @endsection