PHP Classes

File: resources/views/files/index.blade.php

Recommend this page to a friend!
  Classes of Hillary Kollan   ShareZipp   resources/views/files/index.blade.php   Download  
File: resources/views/files/index.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: ShareZipp
Shares files uploaded by users as ZIP archives
Author: By
Last change:
Date: 1 year ago
Size: 1,204 bytes
 

Contents

Class file image Download
@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">Files <a href="{{ url('files/create') }}" class="btn btn-info">Add more files</a> <a href="{{ url('share/').'/'.$folderName }}" class="btn btn-primary">Zip folder and share</a> </div>

                <div class="card-body">
                    @if($files->count())
                        <table class="table">
                            <th>Name</th>
                            <th>Size</th>
                            @foreach($files as $file)
                                <tr>
                                    <td><a href="{{ url('files/'.$file->path.'/'.$file->filename) }}">{{ $file->filename }}</a></td>
                                    <td>{{ $file->size }} Bytes</td>
                                </tr>
                            @endforeach
                        </table>
                    @else
                        You have no files yet!
                    @endif
                </div>
            </div>
        </div>
    </div>
</div>
@endsection