source: resources/views/dashboard/documents/index.blade.php@ d795fa6

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

added validation to blades

  • Property mode set to 100644
File size: 8.5 KB
Line 
1@extends('layouts.app')
2
3@section("title", "SaveSpace - Documents")
4
5@section('pageTitle', 'SaveSpace - Documents')
6
7@section('content')
8
9 <div class="row app-block mb-4">
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
68
69 <div class="col-md-9 app-content">
70 <div class="app-content-overlay"></div>
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
125
126 <p>Documents</p>
127 <div class="row">
128 @forelse($documents as $document)
129 <div class="col-xl-3 col-lg-4 col-md-6 col-sm-12">
130 <div class="card app-file-list">
131 <div class="app-file-icon">
132 <i class="fa fa-file-text-o text-primary"></i>
133 <div class="dropdown position-absolute top-0 right-0 mr-3">
134 <a href="#" class="btn btn-outline-light btn-sm" data-toggle="dropdown">
135 <i class="fa fa-ellipsis-h"></i>
136 </a>
137 <div class="dropdown-menu dropdown-menu-right">
138 <a href="{{ route("dashboard.documents.edit", ["id" => $document->id]) }}" class="dropdown-item">View Details</a>
139 <a href="#" class="dropdown-item">Share</a>
140 <a href="#" class="dropdown-item">Download</a>
141 <a href="#" class="dropdown-item">Move to</a>
142 <a href="#" class="dropdown-item">Delete</a>
143 </div>
144 </div>
145 </div>
146 <div class="p-2 small">
147 <div>{{$document->name}} - {{$document->arch_id}}</div>
148 <div class="text-muted">{{$document->description}}</div>
149 <div class="text-muted">1.2MB</div>
150 </div>
151 </div>
152 </div>
153 @empty
154 <div>No items found</div>
155 @endforelse
156
157 </div>
158 </div>
159
160@endsection
161
162@section('script')
163
164
165
166@endsection
Note: See TracBrowser for help on using the repository browser.