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-16 23:43:14 +00:00
|
|
|
<div class="card-header"><strong>Products</strong></div>
|
2018-09-10 04:23:32 +00:00
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
@if (session('status'))
|
|
|
|
<div class="alert alert-success" role="alert">
|
|
|
|
{{ session('status') }}
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
@forelse ($products as $product)
|
|
|
|
<li><a href="/product/{{$product['id']}}">{{$product['name']}}</a></li>
|
|
|
|
@empty
|
|
|
|
<p>There are no products yet. Include one with the form above.</p>
|
|
|
|
@endforelse
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-09-16 23:43:14 +00:00
|
|
|
<div class="card mt-4">
|
|
|
|
<div class="card-header">Add product</div>
|
|
|
|
<div class="card-body">@include('product.addProductForm')</div>
|
|
|
|
</div>
|
|
|
|
<div class="float-right mt-2"><a class="btn btn-secondary" href="/home">Your items</a></div>
|
2018-09-10 04:23:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|