shareit/resources/views/item.blade.php

34 lines
1.1 KiB
PHP
Raw Normal View History

2018-09-11 23:48:09 +00:00
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card mt-4">
<div class="card-header">
Item: <strong>{{$item->name}}</strong>
2018-09-11 23:48:09 +00:00
@include ('item.buttons')
</div>
<div class="card-body">
@if (session('status'))
<div class="alert alert-success" role="alert"> {{ session('status') }}
</div>
@endif
<ul>
@forelse ($otherItems as $otherItem)
@if (!$otherItem->usedBy)
<li><a href="/item/{{ $otherItem->id }}">{{ $otherItem->name }}</a></li>
@endif
@empty
<p>There are no items yet. Include one with the form above.</p>
@endforelse
</ul>
</div>
</div>
</div>
</div>
</div>
@endsection