source: resources/views/dashboard/documents/department.blade.php@ 120759b

develop
Last change on this file since 120759b was 24a616f, checked in by Berat Kjufliju <kufliju@…>, 3 years ago

added documents crud, added last_seen_to_user, edited views

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