edms/resources/views/admin/shared-files/index.blade.php

73 lines
2.9 KiB
PHP
Raw Normal View History

2022-06-06 05:07:54 +00:00
@extends('admin.layouts.master')
@section('pageTitle', 'Manage Shared Directorys')
@section('content')
<div class="page-header">
<h1 class="page-title">Manage Shared Directories</h1>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ route('dashboard') }}">Dashboard</a></li>
<li class="breadcrumb-item active">Manage Shared Directories</li>
</ol>
<div class="page-header-actions">
<a class="btn btn-dark" href="{{ route('add-shared-file') }}">
<i class="icon wb-plus" aria-hidden="true"></i>
<span class="hidden-sm-down">Creat Shared Directory</span>
</a>
</div>
</div>
<div class="page-content">
<div class="panel">
<div class="panel-body">
<table class="table table-hover dataTable table-striped w-full" data-plugin="dataTable">
<thead>
<tr>
<th>{{ __('Type') }}</th>
<th>{{ __('File / Directory') }}</th>
<th>{{ __('Description') }}</th>
<th>{{ __('Creation Date') }}</th>
<th>{{ __('Last Modified') }}</th>
<th>{{ __('Action') }}</th>
</tr>
</thead>
<tfoot>
<tr>
<th>{{ __('Type') }}</th>
<th>{{ __('File / Directory') }}</th>
<th>{{ __('Description') }}</th>
<th>{{ __('Creation Date') }}</th>
<th>{{ __('Last Modified') }}</th>
<th>{{ __('Action') }}</th>
</tr>
</tfoot>
<tbody>
@if($directories)
@foreach($directories as $directory)
<tr>
<td><a href="{{ route('my-files', base64_encode($directory->id)) }}"><i class="icon wb-folder" aria-hidden="true" style="font-size: 39px; color: #76838f;"></i></a></td>
<td>{{ $directory->name }}</td>
<td>{{ $directory->description }}</td>
<td>{{ $directory->created_at != '' ? date('d-m-Y', strtotime($directory->created_at)) : ''}}</td>
<td>{{ $directory->updated_at != '' ? date('d-m-Y', strtotime($directory->updated_at)) : ''}}</td>
<td>
<a class="btn btn-sm btn-icon btn-default btn-outline btn-round m-1" href="{{ route('edit-shared-file', base64_encode($directory->id)) }}" data-toggle="tooltip" data-original-title="{{ __('Edit') }}"><i class="icon wb-edit" aria-hidden="true"></i></a>&nbsp;&nbsp;
<a class="btn btn-sm btn-icon btn-default btn-outline btn-round m-1" data-toggle="tooltip" data-original-title="{{ __('Delete') }}" onclick="confirm('Are you sure you want to delete this record? All the related data will be deleted also.') ? '' : event.preventDefault();" href="{{ route('delete-shared-file', base64_encode($directory->id)) }}"><i class="icon wb-trash" aria-hidden="true"></i></a></td>
</tr>
@endforeach
@else
<tr>
<td colspan="100%" class="text-center">No record found</td>
</tr>
@endif
</tbody>
</table>
</div>
</div>
</div>
@endsection