Changeset b9c4a92 for resources


Ignore:
Timestamp:
10/18/21 23:00:23 (3 years ago)
Author:
Berat Kjufliju <kufliju@…>
Branches:
develop, master
Children:
ea7b12a
Parents:
e6c1f87
Message:

edited file upload, seeding and departments controller

Location:
resources/views/dashboard
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • resources/views/dashboard/departments/index.blade.php

    re6c1f87 rb9c4a92  
    6767                                    @endif
    6868                                    <!-- Trigger -->
    69                                     <td>{!! Str::substr($department->location , strlen(Storage::disk('local')->path(''))) !!}
     69                                    <td>{{ $department->location }}
    7070                                            <button class="btn btn-sm btn-primary text-white" data-clipboard-target="#copy_{{ $department->id }}"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-clipboard" viewBox="0 0 16 16">
    7171                                                    <path d="M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z"/>
     
    112112                            </tbody>
    113113                        </table>
    114 
    115 
    116 
    117114                    </div>
    118115                </div>
  • resources/views/dashboard/documents/edit.blade.php

    re6c1f87 rb9c4a92  
    6565                                            </div>
    6666                                        </div>
    67 
     67                                        <div class="row">
     68                                            <div class="col-md-6">
     69                                                <input type="file" class="form-control" id="file-item" name="file_item[]" multiple>
     70                                            </div>
     71                                        </div>
    6872
    6973                                        <input type="submit" value="Save changes" class="submitBtn btn btn-primary pull-right m-10">
  • resources/views/dashboard/documents/index.blade.php

    re6c1f87 rb9c4a92  
    2323                            <i data-feather="folder" class="width-15 height-15 mr-2"></i>
    2424                            Documents
    25 {{--                            <span class="small ml-auto">{{$totalDocs}}</span>--}}
    2625                        </a>
    2726                        @foreach($departments as $department)
    2827                            <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}}
     28                                 <i data-feather="folder" class="width-15 height-15 mr-2"></i>
     29                                 {{$department->name}}
    3130                                <span class="small ml-auto">{{$department->document->count()}}</span>
    3231                            </a>
     
    6362            </div>
    6463        </div>
    65 
    66 
    6764        <div class="col-md-9 app-content">
    6865            <div class="app-content-overlay"></div>
     
    7673                            </a>
    7774                            <div class="dropdown-menu">
    78                                 <a class="dropdown-item" href="{{route("dashboard.departments.create")}}">Department</a>
    7975                                <a class="dropdown-item" href="{{route("dashboard.documents.create")}}">Document</a>
    8076                            </div>
     
    123119                </div>
    124120            </div>
    125             <p>Documents</p>
     121            @if(!Request::query('id'))
     122                <h4>Documents</h4><br/>
     123            @else
     124                <h4> {{ $deptName }} - {{$deptCode}} </h4>
     125            <br/>
     126                @endif
    126127            <div class="row">
    127128                @forelse($documents as $document)
Note: See TracChangeset for help on using the changeset viewer.