Changeset 4521f25 for resources/views/dashboard/folders/files.blade.php
- Timestamp:
- 10/31/21 22:09:08 (3 years ago)
- Branches:
- master
- Children:
- 8fdb18e
- Parents:
- e78295c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resources/views/dashboard/folders/files.blade.php
re78295c r4521f25 8 8 <div class="col-md-3 app-sidebar"> 9 9 <div class="card"> 10 <div class="card-body"> 11 @if(auth()->user()->hasPermission('manage_all_files')) 12 <a href="javascript:void(0)" class="btn btn-secondary btn-block file-upload-btn text-white" data-toggle="modal" data-target="#uploadFiles_{{$folder->id}}"> 13 Upload files 14 </a> 15 @endif 16 </div> 10 17 <div class="app-sidebar-menu"> 11 18 <div class="list-group list-group-flush"> … … 15 22 </a> 16 23 @foreach($folders as $obj) 17 <a href="{{ route("dashboard.folders.files", ["id" => $obj->id]) }}" class="list-group-item d-flex align-items-center"> 24 @if($obj == $folder) 25 <a href="{{ route("dashboard.folders.files", ["id" => $folder->id]) }}" class="list-group-item d-flex align-items-center" style="font-weight: bold;"> 18 26 <i data-feather="folder" class="width-15 height-15 mr-2"></i> 19 {{$ obj->name}}20 <span class="small ml-auto">{{$ obj->files->count()}}</span>27 {{$folder->name}} 28 <span class="small ml-auto">{{$folder->files->count()}}</span> 21 29 </a> 30 @else 31 <a href="{{ route("dashboard.folders.files", ["id" => $obj->id]) }}" class="list-group-item d-flex align-items-center"> 32 <i data-feather="folder" class="width-15 height-15 mr-2"></i> 33 {{$obj->name}} 34 <span class="small ml-auto">{{$obj->files->count()}}</span> 35 </a> 36 @endif 22 37 @endforeach 23 38 </div> … … 54 69 </div> 55 70 56 <p>Files </p>71 <p>Files in {{$folder->name}}</p> 57 72 58 73 <div class="row"> … … 75 90 {{-- </a>--}} 76 91 {{-- </div>--}} 77 <div class="col-xl-1 col-lg-1 col-md-1 col-sm-2"> 78 <i class="fa fa-file-image-o text-danger fa-2x"></i> 79 </div> 92 <i class="fa fa-file-image-o text-danger"></i> 80 93 @else 81 94 <i class="fa fa-file-text-o text-warning"></i> … … 145 158 146 159 </div> 147 160 <div class="modal fade" id="uploadFiles_{{$folder->id}}" tabindex="-1" role="dialog" aria-hidden="true"> 161 <div class="modal-dialog modal-dialog-centered" role="document"> 162 <div class="modal-content"> 163 <div class="modal-header"> 164 <h5 class="modal-title" id="exampleModalCenterTitle">Upload</h5> 165 <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 166 <i class="ti-close"></i> 167 </button> 168 </div> 169 <div class="modal-body"> 170 <form action="{{ route("dashboard.files.store") }}" method="post" accept-charset="utf-8" enctype="multipart/form-data"> 171 @csrf 172 <div class="row"> 173 <div class="col-md-10"> 174 <div class="form-group"> 175 <select class="form-control" name="folder" hidden> 176 <option value="{{ $folder->id }}" {{ (old("folder") == $folder->id ? "selected" : "") }}>{{ $folder->name }}</option> 177 </select> 178 </div> 179 </div> 180 <div class="col-md-10"> 181 <div class="form-group"> 182 <label for="exampleFormControlSelect1">Files</label> 183 184 185 <input type="file" class="form-control" id="file-item" name="file_item[]" accept="{{ $fileTypes }}" multiple> 186 </div> 187 </div> 188 </div> 189 <br/> 190 <div class="modal-footer"> 191 <button type="button" class="btn btn-secondary" data-dismiss="modal">Close 192 </button> 193 <button type="submit" class="btn btn-primary">Save changes</button> 194 </div> 195 </form> 196 </div> 197 198 </div> 199 </div> 200 </div> 148 201 </div> 149 202
Note:
See TracChangeset
for help on using the changeset viewer.