@extends('layouts.app') @section('breadcrumb') @endsection @section('header') @endsection @section('content')
{{ Form::select('type', [null=>'Cualquiera', 'hamster'=>'Hamster', 'tablet'=>'Tablet'], old('type'), ['class' => 'form-control']) }}
{{ Form::select('status', [null=>'Cualquiera', 'ok'=>'Funcionando', 'malfunction'=>'En garantía'], old('status'), ['class' => 'form-control']) }}
@if(old('series') || old('brand') || old('model')) Reiniciar filtros @endif
@if($products->count()) @foreach($products as $product) @endforeach
Serie Marca Modelo Tipo Estado Precio Proveedor Acciones
{{$product->series}} {{$product->brand}} {{$product->model}} {{ucfirst($product->type)}} {{$product->status == 'ok'?'Funcionando':'En garantía'}} {{ $product->price }} {{$product->supplier_name}} @if($product->owner_id) @endif @if(count($product->events)) Detalles @endif @if($product->status == 'ok') Editar @if(!$product->owner_id) Mandar a garantía
@endif @else Marcar como reparado @endif
{!! $products->render() !!}
@else

No hay productos en el inventario

@endif
@endsection