I happen to have my template index.blade.php in which I post the list of articles, I would like the status Inactive to appear red, I do not have any idea of how to do it I am a newbie in laravel and php, in fact I was inclined by this framework to avoid doing so much php code thanks to the blade templates ..
I guess I should implement an if something like
if (estado.equals("Inactivo")){}
but I do not have the slightest idea I hope you can help me
I attach the file index.balde.php
@extends('layouts.admin')
@section('contenido')
<div class="row">
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<h3>Listado de articulos <a href="almacen/articulo/create"><button type="button" name="button" class="btn btn-success">nuevo</button></a></h3>
@include('almacen.articulo.serch')
</div>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="table-responsive">
<table class="table table-bordered table-condensed table-striped table-hover">
<thead>
<th>ID</th>
<th>Nombre</th>
<th>Codigo</th>
<th>Categoria</th>
<th>Stock</th>
<th>Imagen</th>
<th>Estado</th>
<th>Opciónes</th>
</thead>
@foreach($articulos as $art)
<tr>
<td>{{$art->idarticulo}}</td>
<td>{{$art->nombre}}</td>
<td>{{$art->codigo}}</td>
<td>{{$art->categoria}}</td>
<td>{{$art->stock}}</td>
<td>
<img src="{{asset('/imagenes/articulos/'.$art->imagen)}}" alt="{{$art->nombre}}" width="100px" height="100px" class="img-thumbnail" />
</td>
<td>{{$art->estado}}</td>
<td>
<button type="button" name="button">Editar</button>
</td>
</tr>
@endforeach
</table>
</div>
</div>
</div>
@endsection