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">
|
2018-09-12 05:31:03 +00:00
|
|
|
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
|
|
|
|
|
2018-09-13 00:29:07 +00:00
|
|
|
<strong>Other items from the same product:</strong>
|
2018-09-11 23:48:09 +00:00
|
|
|
<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>
|
2018-09-13 00:29:07 +00:00
|
|
|
<div class="float-right mt-2 mr-4"><a href="{{ URL::previous() }}">BACK</a></div>
|
2018-09-11 23:48:09 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|