@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
info at phpclasses dot org