Last change
on this file since dfae77e was dfae77e, checked in by Igor Danilovski <igor_danilovski@…>, 2 years ago |
|
-
Property mode
set to
100644
|
File size:
1.8 KB
|
Rev | Line | |
---|
[dfae77e] | 1 | @extends('layouts.app')
|
---|
| 2 |
|
---|
| 3 | @section('content')
|
---|
| 4 | <div class="container">
|
---|
| 5 | <div class="row justify-content-center">
|
---|
| 6 | <div class="artists-list">
|
---|
| 7 | <h3 class="mb-3">My Artists</h3>
|
---|
| 8 | <table class="table table-hover">
|
---|
| 9 | <thead>
|
---|
| 10 | <tr>
|
---|
| 11 | <th scope="col">#</th>
|
---|
| 12 | <th scope="col">Artist Name</th>
|
---|
| 13 | <th scope="col">Price per Hour</th>
|
---|
| 14 | <th scope="col">Type</th>
|
---|
| 15 | <th scope="col">Genres</th>
|
---|
| 16 | <th scope="col">City, Country</th>
|
---|
| 17 | <th scope="col">Options</th>
|
---|
| 18 | </tr>
|
---|
| 19 | </thead>
|
---|
| 20 | <tbody>
|
---|
| 21 | @foreach($artists as $artist)
|
---|
| 22 | <tr>
|
---|
| 23 | <td>{{ $loop->index+1 }}</td>
|
---|
| 24 | <td>{{ $artist->user->name }}</td>
|
---|
| 25 | <td>{{ $artist->price_per_hour }}</td>
|
---|
| 26 | <td>{{ $artist->artist_type->name }}</td>
|
---|
| 27 | <td>@foreach($artist->genres as $genre) {{ $genre->name }} @if (!$loop->last)
|
---|
| 28 | ,@endif @endforeach</td>
|
---|
| 29 | <td>{{ $artist->city }}, {{ $artist->country }}</td>
|
---|
| 30 | <td>
|
---|
| 31 | <a href="/{{ $artist->user->username }}">
|
---|
| 32 | <button type="button" class="btn btn-primary">View Artist</button>
|
---|
| 33 | </a>
|
---|
| 34 | </td>
|
---|
| 35 | </tr>
|
---|
| 36 | @endforeach
|
---|
| 37 | </tbody>
|
---|
| 38 | </table>
|
---|
| 39 | </div>
|
---|
| 40 | </div>
|
---|
| 41 | </div>
|
---|
| 42 | @endsection
|
---|
Note:
See
TracBrowser
for help on using the repository browser.