JFIF  x x C         C     "        } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz        w !1AQ aq"2B #3Rbr{ gilour

File "edit.blade.php"

Full Path: /home/palsarh/web/palsarh.in/public_html/resources/views/admin/newsletter/edit.blade.php
File size: 1.47 KB
MIME-type: text/html
Charset: utf-8

@php
    $newsletter = App\Models\Newsletter::where('id', $id)->first();
@endphp

<form action="{{ route('admin.newsletter.update', $id) }}" method="post">@csrf
    <div class="mb-3">
        <label for="subject" class="form-label ol-form-label">{{ get_phrase('Subject') }}</label>
        <input type="text" name="subject" class="form-control ol-form-control" id="subject" value="{{ $newsletter->subject }}" placeholder="{{ get_phrase('Subject') }}" required>
    </div>

    <div class="mb-3">
        <label for="description" class="form-label ol-form-label">{{ get_phrase('Description') }}</label>
        <textarea name="description" id="description" required>{{ $newsletter->description }}</textarea>
    </div>

    <div class="fpb-7">
        <button type="submit" class="ol-btn-primary">{{ get_phrase('Submit') }}</button>
    </div>
</form>

<script type="text/javascript">
    "use strict";

    $('#description').summernote({
        height: 180, // set editor height
        minHeight: null, // set minimum height of editor
        maxHeight: null, // set maximum height of editor
        focus: true, // set focus to editable area after initializing summernote
        toolbar: [
            ['color', ['color']],
            ['font', ['bold', 'italic', 'underline', 'clear']],
            ['fontsize', ['fontsize']],
            ['para', ['ul', 'ol']],
            ['table', ['table']],
            ['insert', ['link']]
        ]
    });
</script>