summaryrefslogtreecommitdiff
path: root/Year_3/TSDWL/LARAVEL/iBook/resources/views/books/index.blade.php
blob: 65a4a4291b0670275aeb758f9b59227e5f630afa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@extends('layout')

@section('content')

<h1>Hello world! They're my books:</h1>
@foreach ($books as $book)
<p>
    <a href="/books/{{ $book->id }}">{{ $book->name }}</a>
    @if ($book->author_id)
    <span>by {{ $book->author->name }}</span>
    @endif
</p>
@endforeach

@endsection