Manage Leave Application Document View

Create a folder called manage-leave-application-document in resources>views

Create a file called index.blade.php in in resources>views>manage-leave-application-document folder

To download a file, simply click on the download link.

manage-leave-document

Complete source code

Note: Please use the copy button to copy the source code.

@extends('layouts.app') @section('content') <div class="container"> <div class="row"> <h2>Application Documents</h2></div> <div class="row"> @if ($applicationDocuments->count()) <h3>Documents</h3> <table class="table table-striped table-bordered table-hover"> <thead> <tr> <td>Name</td> <td></td> </tr> </thead> <tbody> @foreach ($applicationDocuments as $applicationDocument) <tr> <td>{{$applicationDocument->name}}</td> <td><a href="{{ route('leave_application_confirmation.download', $applicationDocument->id) }}">Download</a></td> </tr> </tbody> @endforeach </table> @endif </div> </div> @endsection