mirror of
https://github.com/brunofontes/shareit.git
synced 2024-11-24 04:14:57 +00:00
49 lines
1.8 KiB
PHP
49 lines
1.8 KiB
PHP
@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">
|
|
<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>
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
@if (session('status'))
|
|
<div class="alert alert-success" role="alert"> {{ session('status') }}
|
|
</div>
|
|
@endif
|
|
|
|
<strong>Items:</strong>
|
|
<ul>
|
|
@forelse ($product->items as $item)
|
|
<li><a href="/item/{{ $item->id }}">{{ $item->name }}</a></li>
|
|
@empty
|
|
<p>There are no items yet. Include one with the form above.</p>
|
|
@endforelse
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card mt-4">
|
|
<div class="card-header">Add item</div>
|
|
<div class="card-body">@include('product.addItemForm')</div>
|
|
</div>
|
|
|
|
<div class="float-right mt-2"><a class="btn btn-secondary" href="/product">BACK</a></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endsection
|