@extends('admin.layouts.master') @push('css') @endpush @section('page-title') @include('admin.components.page-title',['title' => __($page_title)]) @endsection @section('breadcrumb') @include('admin.components.breadcrumb',['breadcrumbs' => [ [ 'name' => __("Dashboard"), 'url' => setRoute("admin.dashboard"), ] ], 'active' => __("Push Notification")]) @endsection @section('content')
{{ __("Send Notification") }}
@csrf
@include('admin.components.form.input',[ 'label' =>__( "titleS"), 'name' => "title", 'value' => old("title"), 'data_limit' => 40, 'placeholder' => __( "Write Here.."), ])
@include('admin.components.form.textarea',[ 'label' =>__( "Notification Body")."*", 'name' => "body", 'data_limit' => 80, 'placeholder' => __( "Write Here.."), ])
@include('admin.components.button.form-btn',[ 'class' => "w-100 btn-loading", 'text' => __("send"), 'permission' => "admin.push.notification.send", ])
{{ __("Latest Notifications") }}
@forelse ($notifications as $item) @empty @include('admin.components.alerts.empty',['colspan' => 4]) @endforelse
{{ __("titleS") }} {{ __("Body") }} {{ __("Time") }}
  • notification
{{ Str::words($item->message->title,5,"...") ?? "" }} {{ Str::words($item->message->body,10,"...") ?? "" }} {{ $item->created_at->format("Y-m-d h:i A") }}
{{ get_paginate($notifications) }}
@endsection @push('script') @endpush