shareit/resources/views/product/index.blade.php

36 lines
1.3 KiB
PHP
Raw Normal View History

@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.products') }}</strong></div>
<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>{{ __('product.noProductsYet') }}</p>
@endforelse
</ul>
</div>
</div>
2018-09-16 23:43:14 +00:00
<div class="card mt-4">
<div class="card-header">{{ __('product.addProduct') }}</div>
2018-09-16 23:43:14 +00:00
<div class="card-body">@include('product.addProductForm')</div>
</div>
<div class="float-right mt-2"><a class="btn btn-secondary" href="/home">{{ __('product.yourItems') }}</a></div>
</div>
</div>
</div>
@endsection