@extends('layouts.admin.main') @section('title') {{ adminPageTitle('Notification List') }} @endsection @section('page-specific-styles') @endsection @section('content')

Notifications

@foreach($notifications as $key => $notification) @if(strlen($notification->message) < 50) @else @endif @if(strtolower($notification->type) == 'now') @else @endif @endforeach
Sr no. Title Message Type Schedule Datetime Sent Datetime Action
{{ ++$i; }} {{ $notification->title }}{{ $notification->message }}{{ substr($notification->message, 0, 50)."..." }}Read More{{ $notification->type }} {{ isset($notification->schedule_datetime) ? date('d-m-Y h:i:s A', strtotime($notification->schedule_datetime)) : '' }}{{ isset($notification->created_at) ? date('d-m-Y h:i:s A', strtotime($notification->created_at)) : '' }}{{ isset($notification->sent_on) ? date('d-m-Y h:i:s A', strtotime($notification->sent_on)) : '' }} @if(strtolower($notification->type) != 'now' && $notification->sent_on == '')   @endif
@endsection @section('page-specific-scripts') @endsection