[24a616f] | 1 | @extends('layouts.app')
|
---|
| 2 |
|
---|
| 3 | @section('pageTitle', 'File Manager')
|
---|
| 4 |
|
---|
| 5 | @section('content')
|
---|
| 6 |
|
---|
| 7 | <div class="row app-block mb-4">
|
---|
| 8 | @include('dashboard.documents.fragments.menu')
|
---|
| 9 |
|
---|
| 10 | <div class="col-md-9 app-content">
|
---|
| 11 | <div class="app-content-overlay"></div>
|
---|
| 12 | @include('dashboard.documents.fragments.filters')
|
---|
| 13 |
|
---|
| 14 | <p>Documents</p>
|
---|
| 15 | <div class="row">
|
---|
| 16 | @foreach($documents as $document)
|
---|
| 17 | <div class="col-xl-3 col-lg-4 col-md-6 col-sm-12">
|
---|
| 18 | <div class="card app-file-list">
|
---|
| 19 | <div class="app-file-icon">
|
---|
| 20 | <i class="fa fa-file-text-o text-primary"></i>
|
---|
| 21 | <div class="dropdown position-absolute top-0 right-0 mr-3">
|
---|
| 22 | <a href="#" class="btn btn-outline-light btn-sm" data-toggle="dropdown">
|
---|
| 23 | <i class="fa fa-ellipsis-h"></i>
|
---|
| 24 | </a>
|
---|
| 25 | <div class="dropdown-menu dropdown-menu-right">
|
---|
| 26 | <a href="{{ route("dashboard.documents.edit", ["id" => $document->id]) }}" class="dropdown-item">View Details</a>
|
---|
| 27 | <a href="#" class="dropdown-item">Share</a>
|
---|
| 28 | <a href="#" class="dropdown-item">Download</a>
|
---|
| 29 | <a href="#" class="dropdown-item">Move to</a>
|
---|
| 30 | <a href="#" class="dropdown-item">Delete</a>
|
---|
| 31 | </div>
|
---|
| 32 | </div>
|
---|
| 33 | </div>
|
---|
| 34 | <div class="p-2 small">
|
---|
| 35 | <div>{{$document->name}} - {{$document->arch_id}}</div>
|
---|
| 36 | <div class="text-muted">{{$document->description}}</div>
|
---|
| 37 | <div class="text-muted">1.2MB</div>
|
---|
| 38 | </div>
|
---|
| 39 | </div>
|
---|
| 40 | </div>
|
---|
| 41 | @endforeach
|
---|
| 42 |
|
---|
| 43 |
|
---|
| 44 | </div>
|
---|
| 45 | </div>
|
---|
| 46 |
|
---|
| 47 | @endsection
|
---|
| 48 |
|
---|
| 49 | @section('script')
|
---|
| 50 |
|
---|
| 51 | <script>
|
---|
| 52 | $(function () {
|
---|
| 53 | $(document).on('click', '.file-upload-btn', function () {
|
---|
| 54 | $('form#file-upload input[type="file"]').trigger('click');
|
---|
| 55 | });
|
---|
| 56 |
|
---|
| 57 | $(document).on('click', '.app-sidebar-menu-button', function () {
|
---|
| 58 | $('.app-block .app-sidebar, .app-content-overlay').addClass('show');
|
---|
| 59 | // $('.app-block .app-sidebar .app-sidebar-menu').niceScroll().resize();
|
---|
| 60 | return false;
|
---|
| 61 | });
|
---|
| 62 |
|
---|
| 63 | $(document).on('click', '.app-content-overlay', function () {
|
---|
| 64 | $('.app-block .app-sidebar, .app-content-overlay').removeClass('show');
|
---|
| 65 | return false;
|
---|
| 66 | });
|
---|
| 67 | });
|
---|
| 68 | </script>
|
---|
| 69 |
|
---|
| 70 | @endsection
|
---|