PHP Classes

File: resources/views/admin/pages/notifications.blade.php

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   Store My Notes Laravel 5   resources/views/admin/pages/notifications.blade.php   Download  
File: resources/views/admin/pages/notifications.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Store My Notes Laravel 5
Store and share user notes
Author: By
Last change:
Date: 1 month ago
Size: 1,269 bytes
 

Contents

Class file image Download
@extends('admin.layouts.master')

@section('title')
Notifications | Admin Panel | Store My Notes
@endsection

@section('content')
<div class="panel panel-theme">
    <div class="panel-heading">
        <h3 class="panel-title">All Notifications</h3>
    </div>
    <div class="panel-body">
        <table class="table table-hover table-striped table-responsive">
            <thead>
                <tr>
                    <th>#</th>
                    <th>Subject</th>
                    <th>Email</th>
                    <th>Description</th>
                    <th>Status</th>
                    <th>Actions</th>
                </tr>
            </thead>
            <tbody>
                @php $i = 1; @endphp
                @foreach ($notifications as $notification)
                <tr>
                    <td>{{$i}}</td>
                    <td>{{$notification->subject}}</td>
                    <td>{{$notification->email}}</td>
                    <td>{!! substr(strip_tags($notification->description), 0, 200) !!}...</td>
                    <td>
                    @if ($notification->is_seen == 1)
                        <span class="btn btn-default">Seen</span>
                    @else
                        <span class="btn btn-danger">Unseen</span>
                    @endif
                       
                    </td>
                    <td>

                        <a href="{{ route('admin.notification.single', $notification->id) }}" class="btn btn-theme">View</a>

                    </td>
                </tr>
                @php $i++; @endphp
                @endforeach

            </tbody>
        </table>
        <div class="text-center">
            {{ $notifications->links() }}
        </div>
    </div>
</div>
@endsection