Commit a424727d authored by King Alex's avatar King Alex

ajout de vues admin

parent 05b0bb69
@extends('templates.admin.starter')
@section ('content-header')
<h1>
Images
<small>Modifier ou supprimer les images</small>
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Level</a></li>
<li class="active">Here</li>
</ol>
@stop
@section('mycontent')
<div class="container">
<div class="row">
<div class="col-lg-12">
<table>
<tr class="tableTitle">
<th>ID</th>
<th>Path</th>
<th>Name</th>
<th>Alt</th>
</tr>
@foreach($images as $ingredient)
<tr class="tableRow">
<th>{{ $ingredient['id'] }}</th>
<th>{{ $ingredient['path'] }}</th>
<th>{{ $ingredient['name'] }}</th>
<th>{{ $ingredient['alt'] }}</th>
<th>
<form action="{{ url('admin/images/edit/')}}/{{ $ingredient['id'] }}" >
<button name="edit" value="edit">Edit</button>
</form>
</th>
<th>
<form action=" {{ url('admin/images/remove/').'/'.$ingredient['id'] }} " method="post">
<button name="delete" value="delete">Delete</button>
</form>
</th>
</tr>
@endforeach
</table>
</div>
</div>
</div>
@stop
\ No newline at end of file
@extends('templates.admin.starter')
@section ('content-header')
<h1>
Ingredients
<small>Modifier ou supprimer les ingredients</small>
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Level</a></li>
<li class="active">Here</li>
</ol>
@stop
@section('mycontent')
<div class="container">
<div class="row">
<div class="col-lg-12">
<table>
<tr class="tableTitle">
<th>id</th>
<th>name</th>
</tr>
@foreach($ingredients as $ingredient)
<tr class="tableRow">
<th>{{ $ingredient['id'] }}</th>
<th>{{ $ingredient['name'] }}</th>
<th>
<form action="{{ url('admin/ingredients/edit/')}}/{{ $ingredient['id'] }}" >
<button name="edit" value="edit">Edit</button>
</form>
</th>
<th>
<form action=" {{ url('admin/ingredients/remove/').'/'.$ingredient['id'] }} " method="post">
<button name="delete" value="delete">Delete</button>
</form>
</th>
</tr>
@endforeach
</table>
</div>
</div>
</div>
@stop
\ No newline at end of file
@extends('templates.admin.starter')
@section ('content-header')
<h1>
Recettes
<small>Modifier ou supprimer les recettes</small>
</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> Level</a></li>
<li class="active">Here</li>
</ol>
@stop
@section('mycontent')
<div class="container">
<div class="row">
<div class="col-lg-12">
<table>
<tr class="tableTitle">
<th>ID</th>
<th>Title</th>
<th>Introduction</th>
<th>Description</th>
</tr>
@foreach($recipes as $ingredient)
<tr class="tableRow">
<th>{{ $ingredient['id'] }}</th>
<th>{{ $ingredient['title'] }}</th>
<th>{{ $ingredient['introduction'] }}</th>
<th>{{ $ingredient['description'] }}</th>
<th>
<form action="{{ url('admin/recipes/edit/')}}/{{ $ingredient['id'] }}" >
<button name="edit" value="edit">Edit</button>
</form>
</th>
<th>
<form action=" {{ url('admin/recipes/remove/').'/'.$ingredient['id'] }} " method="post">
<button name="delete" value="delete">Delete</button>
</form>
</th>
</tr>
@endforeach
</table>
</div>
</div>
</div>
@stop
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment