2018-09-10 04:23:32 +00:00
|
|
|
@extends('layouts.app')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
|
|
<div class="row justify-content-center">
|
|
|
|
<div class="col-md-8">
|
|
|
|
|
2018-09-11 00:29:32 +00:00
|
|
|
<div class="card mt-4">
|
2018-09-10 04:23:32 +00:00
|
|
|
<div class="card-header">
|
2018-09-16 23:43:14 +00:00
|
|
|
<strong>{{$product['name']}}</strong>
|
|
|
|
@if ($product['url'])
|
|
|
|
(<em><a href="{{$product['url']}}" target="_blank" rel="noopener noreferrer">{{$product['url']}}</a></em>)
|
|
|
|
@endif
|
|
|
|
<span class="d-inline-block text-truncat float-right">
|
|
|
|
<div class="btn-group" role="group">
|
|
|
|
@include ('product.editButton')
|
|
|
|
@include ('product.deleteButton')
|
|
|
|
</div>
|
|
|
|
</span>
|
2018-09-10 04:23:32 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
@if (session('status'))
|
|
|
|
<div class="alert alert-success" role="alert"> {{ session('status') }}
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2018-09-28 04:54:51 +00:00
|
|
|
<strong>{{ __('product.items') }}</strong>
|
2018-09-10 04:23:32 +00:00
|
|
|
<ul>
|
2018-09-11 23:48:09 +00:00
|
|
|
@forelse ($product->items as $item)
|
|
|
|
<li><a href="/item/{{ $item->id }}">{{ $item->name }}</a></li>
|
2018-09-10 04:23:32 +00:00
|
|
|
@empty
|
2018-09-28 04:54:51 +00:00
|
|
|
<p>{{ __('product.noItemsYet') }}</p>
|
2018-09-10 04:23:32 +00:00
|
|
|
@endforelse
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-09-16 23:43:14 +00:00
|
|
|
|
|
|
|
<div class="card mt-4">
|
2018-09-28 04:54:51 +00:00
|
|
|
<div class="card-header">{{ __('product.addItem') }}</div>
|
2018-09-16 23:43:14 +00:00
|
|
|
<div class="card-body">@include('product.addItemForm')</div>
|
|
|
|
</div>
|
|
|
|
|
2018-09-28 04:54:51 +00:00
|
|
|
<div class="float-right mt-2"><a class="btn btn-secondary" href="/product">{{ __('product.back') }}</a></div>
|
2018-09-10 04:23:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|