Changeset d795fa6 for resources/views/dashboard/documents/index.blade.php
- Timestamp:
- 10/17/21 18:39:50 (3 years ago)
- Branches:
- develop, master
- Children:
- bd9e8e3
- Parents:
- 120759b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/dashboard/documents/index.blade.php
r120759b rd795fa6 1 1 @extends('layouts.app') 2 2 3 @section('pageTitle', 'File Manager') 3 @section("title", "SaveSpace - Documents") 4 5 @section('pageTitle', 'SaveSpace - Documents') 4 6 5 7 @section('content') 6 8 7 9 <div class="row app-block mb-4"> 8 @include('dashboard.documents.fragments.menu') 10 <div class="col-md-3 app-sidebar"> 11 <div class="card"> 12 <div class="card-body"> 13 <a href="{{ route("dashboard.documents.create") }}" class="btn btn-secondary btn-block file-upload-btn text-white" data-action="{{ route("dashboard.documents.create") }}"> 14 Add document 15 </a> 16 <form class="d-none" id="file-upload"> 17 <input type="file" multiple> 18 </form> 19 </div> 20 <div class="app-sidebar-menu"> 21 <div class="list-group list-group-flush"> 22 <a href="{{route("dashboard.documents.index")}}" class="list-group-item d-flex align-items-center"> 23 <i data-feather="folder" class="width-15 height-15 mr-2"></i> 24 Documents 25 {{-- <span class="small ml-auto">{{$totalDocs}}</span>--}} 26 </a> 27 @foreach($departments as $department) 28 <a href="{{ route("dashboard.documents.index", ["id" => $department->id]) }}" class="list-group-item d-flex align-items-center"> 29 <i data-feather="folder" class="width-15 height-15 mr-2"></i> 30 {{$department->name}} 31 <span class="small ml-auto">{{$department->document->count()}}</span> 32 </a> 33 @endforeach 34 <a href="" class="list-group-item"> 35 <i data-feather="upload-cloud" class="width-15 height-15 mr-2"></i> 36 Recents 37 </a> 38 <a href="" class="list-group-item d-flex align-items-center"> 39 <i data-feather="star" class="width-15 height-15 mr-2"></i> 40 Important 41 <span class="small ml-auto">10</span> 42 </a> 43 <a href="" class="list-group-item"> 44 <i data-feather="trash" class="width-15 height-15 mr-2"></i> 45 Deleted Files 46 </a> 47 </div> 48 <div class="card-body"> 49 <h6 class="mb-4">Storage Status</h6> 50 <div class="d-flex align-items-center"> 51 <div class="mr-3"> 52 <i data-feather="database" class="width-30 height-30"></i> 53 </div> 54 <div class="flex-grow-1"> 55 <div class="progress" style="height: 10px"> 56 <div class="progress-bar progress-bar-striped" role="progressbar" 57 style="width: 40%" aria-valuenow="10" aria-valuemin="0" 58 aria-valuemax="100"></div> 59 </div> 60 <div class="line-height-12 small text-muted mt-2">19.5GB used of 25GB</div> 61 </div> 62 </div> 63 </div> 64 </div> 65 </div> 66 </div> 67 9 68 10 69 <div class="col-md-9 app-content"> 11 70 <div class="app-content-overlay"></div> 12 @include('dashboard.documents.fragments.filters') 71 <div class="app-action"> 72 <div class="action-left"> 73 <ul class="list-inline"> 74 <li class="list-inline-item mb-0"> 75 <a href="#" class="btn btn-outline-light dropdown-toggle" data-toggle="dropdown"> 76 <i data-feather="plus" class="mr-1"></i> 77 Add 78 </a> 79 <div class="dropdown-menu"> 80 <a class="dropdown-item" href="{{route("dashboard.departments.create")}}">Department</a> 81 <a class="dropdown-item" href="{{route("dashboard.documents.create")}}">Document</a> 82 </div> 83 </li> 84 <li class="list-inline-item mb-0"> 85 <a href="#" class="btn btn-outline-light dropdown-toggle" data-toggle="dropdown">Departments</a> 86 <div class="dropdown-menu"> 87 @foreach($departments as $department) 88 <a class="dropdown-item d-flex justify-content-between m-5" href="{{ route("dashboard.documents.index", ["id" => $department->id]) }}"> 89 {{$department->name}} 90 <span class="text-muted">{{$department->document->count()}}</span> 91 </a> 92 @endforeach 93 </div> 94 </li> 95 <li class="list-inline-item mb-0"> 96 <a href="#" class="btn btn-outline-light dropdown-toggle" data-toggle="dropdown"> 97 Order by 98 </a> 99 <div class="dropdown-menu"> 100 <a class="dropdown-item" href="#">Date</a> 101 <a class="dropdown-item" href="#">Name</a> 102 <a class="dropdown-item" href="#">Size</a> 103 </div> 104 </li> 105 </ul> 106 </div> 107 <div class="action-right"> 108 <form class="d-flex mr-3"> 109 <a href="#" class="app-sidebar-menu-button btn btn-outline-light"> 110 <i data-feather="menu"></i> 111 </a> 112 <div class="input-group"> 113 <input type="text" class="form-control" placeholder="Search file" 114 aria-describedby="button-addon1"> 115 <div class="input-group-append"> 116 <button class="btn btn-outline-light" type="button" id="button-addon1"> 117 <i data-feather="search"></i> 118 </button> 119 </div> 120 </div> 121 </form> 122 </div> 123 </div> 124 13 125 14 126 <p>Documents</p> 15 127 <div class="row"> 16 @fore ach($documents as $document)128 @forelse($documents as $document) 17 129 <div class="col-xl-3 col-lg-4 col-md-6 col-sm-12"> 18 130 <div class="card app-file-list"> … … 39 151 </div> 40 152 </div> 41 @endforeach 42 153 @empty 154 <div>No items found</div> 155 @endforelse 43 156 44 157 </div> … … 49 162 @section('script') 50 163 51 {{-- <script>--}}52 {{-- $(function () {--}}53 {{-- $(document).on('click', '.file-upload-btn', function () {--}}54 {{-- $('form#file-upload input[type="file"]').trigger('click');--}}55 {{-- });--}}56 164 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 165 70 166 @endsection
Note:
See TracChangeset
for help on using the changeset viewer.