PHP Classes

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

Recommend this page to a friend!
  Classes of Okanlawon Anuoluwapo   Book Library   resources/views/books/index.blade.php   Download  
File: resources/views/books/index.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Book Library
Application to manage a book library
Author: By
Last change:
Date: 23 days ago
Size: 728 bytes
 

Contents

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

@section('content')
<div class="container">
    <div class="row">
        @foreach($books as $book)
            <div class="col-md-4">
                <div class="card mb-4">
                    <img src="{{ $book['cover_image'] }}" class="card-img-top" alt="{{ $book['title'] }}">
                    <div class="card-body">
                        <h5 class="card-title">{{ $book['title'] }}</h5>
                        <p class="card-text">{{ $book['author'] }}</p>
                        <a href="{{ route('books.show', $book['id']) }}" class="btn btn-primary">View Details</a>
                    </div>
                </div>
            </div>
        @endforeach
    </div>
</div>
@endsection