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/re-video/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/liminfinity.edukrypt.in/resources/views/admin/re-video/_video-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>Mapping Video List</h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="{{ asset('dashboard') }}">Dashboard</a></li>

                        <li class="breadcrumb-item active" aria-current="page">Mapping Video List</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: 300px;" type="text" class="form-control pull-left" name="query"
                                placeholder="Search By Name....." value="{{ request()->input('query') }}">
                            <span class="text-danger">
                                @error('query')
                                    {{ $message }}
                                @enderror
                            </span>
                        </div>
                        <div class="form-group">
                            
                            <a href="{{ asset('admin/re-video-list') }}"
                                class="btn btn-danger text-white pull-right">
                                <i class="fa fa-refresh"></i>&nbsp;Reset
                            </a>
                            <button type="submit" class="btn btn-primary pull-right m-r-10">
                                <i class="fa fa-search"></i>
                            </button>
                        </div>
                    </form>
                </div>
                <div class="card-body">

                    <a data-url="{{ asset('admin/re-video-delete-all') }}" data-toggle="tooltip"
                        data-original-title="Multiple Delete" href="javascript:;"
                        class="btn m-r-10 btn-danger pull-right text-white m-l-10 boxdeleteall"><i
                            class="fa fa-trash-o"></i></a>

                    <a href="{{ asset('admin/re-upload-video') }}"
                        class="form-group btn btn-primary text-white pull-right"><i class="fa fa-handshake-o"></i>&nbsp; Map
                        Videos</a>

                    {{-- Video Tags --}}
                    <a href="{{ asset('admin/tags') }}" data-toggle="tooltip" data-original-title="Create Tags"
                        class="btn m-r-10 btn-success pull-right text-white m-l-10"><i
                            class="fa fa-tags"></i>&nbsp;Create</a>

                    @if (isset($products))
                        <table class="table table-striped table-bordered">
                            <thead>
                                <tr>
                                    <th>
                                        <input class="boxcheckAll" type="checkbox" name="boxcheckAll">
                                    </th>
                                    <th>Id</th>
                                    <th>Name</th>
                                    <th>Public Name</th>
                                    <th>Duration</th>
                                    <th>Tags</th>
                                    <th>size</th>
                                    <th>Bookmark</th>
                                    <th>Action</th>
                                </tr>
                            </thead>
                            <tbody>
                                @if (!empty($products))
                                    @foreach ($products as $product)
                                        <tr>
                                            <td>
                                                <input class="boxselect" type="checkbox" value="{{ $product->id }}"
                                                    name="boxselect[]">
                                            </td>
                                            <td>{{ $product->id }}</td>
                                            <td>{{ $product->filename }}</td>
                                            <td>{{ $product->public_name }}</td>
                                            <td>{{ $product->duration }}</td>
                                            
                                            <td>
                                            
                                                @if (!empty($product->tags))
                                                    @php
                                                        $arrTags = explode(',',$product->tags);
                                                        foreach ($arrTags as $arrTag) {
                                                            echo "<span class='badge badge-pill badge-secondary'>$arrTag</span>";
                                                        }
                                                    @endphp
                                                @endif
                                            
                                            </td>
                                            <td>{{ $product->size }}</td>
                                            
                                            <td><a href="{{ asset('admin/bookmark-list/' . $product->etag) }}"><i
                                                        class="fa fa-plus"></i></a></td>




                                            <td>
                                                <?php
                                                $permission = App\Helpers\PermissionActivity::getPermissionByAdminId(session('loggedIn')['id'], 10);
                                                
                                                ?>

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

                                                @if ($permission == 'write')
                                                    <a href="{{ asset('admin/edit-re-video/' . $product->etag) }}"><i
                                                            class="fa fa-edit text-success"></i></a>
                                                @endif

                                                @if ($permission == 'delete')
                                                    {{-- <a  href="{{asset('admin/view-product/'.$product->id)}}"><i class="fa fa-eye text-primary"></i></a> --}}
                                                    <a href="{{ asset('admin/edit-re-video/' . $product->etag) }}"><i
                                                            class="fa fa-edit text-success"></i></a>
                                                    <a href="{{ asset('admin/delete-re-video/' . $product->etag) }}"
                                                        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']))
                                {{ $products->appends(['query' => $_GET['query']])->links('admin.includes.paginationlinks') }}
                            @else
                                {{ $products->links('admin.includes.paginationlinks') }}
                            @endif

                            <label>Total Record Found- <?php echo count($products); ?></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>

    <script>
        $('.AssignTags').click(function() {
            if (confirm("Are you sure you want to delete Users? ")) {
                var val = [];
                var URL = $(this).data('url');
                $('.boxselect:checked').each(function(i) {
                    val[i] = $(this).val();
                });

                if (val.length > 0 && URL != '') {}
            }
        });

        $('#sync_video').click(function() {
            $.ajaxSetup({
                headers: {
                    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                }
            });
            var foldername = $(this).data("foldername");
            $.ajax({
                type: "get",
                data: {
                    'foldername': foldername,
                },
                url: "{{ asset('admin/listobjects') }}",
                beforeSend: function() {
                    $('#sync_video').html('<i class="fa fa-refresh"></i> Please Wait....');
                },
                success: function(result) {
                    $('#sync_video').html('<i class="fa fa-refresh"></i> Sync Video');
                    location.reload();
                }
            });
        });
    </script>
    <!-- end::dataTable -->
@endpush

Anon7 - 2021