KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /var/www/liminfinity.edukrypt.in/resources/views/admin/notification/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/liminfinity.edukrypt.in/resources/views/admin/notification/notification-list.blade.php
@extends('admin.layout')
@section('content')

    <!-- begin::main content -->
    <main class="main-content">
        <div class="container">
            <!-- begin::page header -->
            <div class="page-header">
                <h3>Push Notification</h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="#">Dashboard</a></li>
                        <li class="breadcrumb-item active" aria-current="page">Notification</li>
                    </ol>
                </nav>
            </div>
            <!-- end::page header -->

            <div class="card">

                <div class="card-header">
                    <form action="" method="GET">
                        <div class="form-group">
                            <input style="width: 500px;" type="text" class="form-control pull-left" name="query"
                                placeholder="Search here....." value="{{ request()->input('query') }}">
                            <span class="text-danger">@error('query'){{ $message }} @enderror</span>
                        </div>

                        <div class="form-group">
                            <a href="{{ asset('admin/notification-list') }}"
                                class="btn btn-primary pull-right text-white"><i class="fa fa-refresh"></i>&nbsp;
                                Reset</a>
                            <button type="submit" class="btn btn-primary pull-right text-white m-r-10">
                                <i class="fa fa-search"></i>&nbsp;Search</button>
                        </div>
                    </form>
                </div>

                <div class="card-body">
                    <a href="{{ asset('admin/add-notification') }}"
                        class="form-group btn btn-primary pull-right text-white"><i class="fa fa-plus"></i>&nbsp; Add
                        Notification</a>



                    @if (isset($notifications))
                        <table class="table table-striped table-bordered">
                            <thead>
                                <tr>
                                    <th>Id</th>
                                    <th>Title</th>
                                    <th>Notification</th>
                                    <th>Public</th>
                                    <th>Product</th>
                                    <th>Action</th>
                                </tr>
                            </thead>
                            <tbody>
                                @if (!empty($notifications))
                                    @foreach ($notifications as $notification)
                                        <tr>
                                            <td>{{ $notification->id }}</td>
                                            <td>{{ $notification->title }}</td>
                                            <td>{{ $notification->notification }}</td>
                                            <td>
                                                @if ($notification->public == 1)
                                                    <span class="text-success">YES</span>
                                                @else
                                                    <span class="text-danger">NO</span>

                                                @endif
                                            </td>
                                            <td>{{ $notification->product_name }}</td>
                                            <td>
                                                <?php
                                                $permission = App\Helpers\PermissionActivity::getPermissionByAdminId(session('loggedIn')['id'], 18);
                                                
                                                ?>

                                                @if ($permission == 'read')
                                                    <a href="{{ asset('admin/view-notification/' . $notification->id) }}"><i
                                                            class="fa fa-eye text-primary"></i></a>

                                                @endif

                                                @if ($permission == 'write')
                                                    <a href="{{ asset('admin/view-notification/' . $notification->id) }}"><i
                                                            class="fa fa-eye text-primary"></i></a>
                                                    <a href="{{ asset('admin/edit-product/' . $notification->id) }}"><i
                                                            class="fa fa-edit text-success"></i></a>

                                                @endif

                                                @if ($permission == 'delete')
                                                    <a
                                                        href="{{ asset('admin/view-notification/' . $notification->id) }}"><i
                                                            class="fa fa-eye text-primary"></i></a>
                                                    <a
                                                        href="{{ asset('admin/edit-notification/' . $notification->id) }}"><i
                                                            class="fa fa-edit text-success"></i></a>
                                                    <a href="{{ asset('admin/delete-notification/' . $notification->id) }}"
                                                        class="delete-confirm"><i class="fa fa-trash text-danger"></i></a>
                                                @endif


                                            </td>

                                        </tr>
                                    @endforeach
                                @else
                                    <h1>No Record Found!!</h1>
                                @endif

                            </tbody>

                        </table>
                        <div class="pagination-block">

                            @if (isset($_GET['query']))

                                {{ $notifications->appends(['query' => $_GET['query']])->links('admin.includes.paginationlinks') }}
                            @else
                                {{ $notifications->links('admin.includes.paginationlinks') }}
                            @endif

                            <label>Total Record Found- <?php echo count($notifications); ?></label>
                        </div>

                    @endif

                </div>
            </div>



        </div>

    </main>
    <!-- end::main content -->

@endsection
@push('footer-script')
    <!-- begin::dataTable -->

    <script src="{{ asset('public/admin/js/examples/datatable.js') }}"></script>
    <!-- end::dataTable -->
@endpush

Anon7 - 2021