mirror of
https://github.com/brunofontes/shareit.git
synced 2024-11-24 20:26:02 +00:00
36 lines
1.3 KiB
PHP
36 lines
1.3 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.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>
|
|
<div class="card mt-4">
|
|
<div class="card-header">{{ __('product.addProduct') }}</div>
|
|
<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
|