@extends('layouts.master') @section('titulo') Museo @endsection @section('contenido')
Lista de Pintores
@php $bgRojo = false @endphp @foreach( $pintores as $pintor ) @if($bgRojo) @php $bgRojo = false @endphp @else @php $bgRojo = true @endphp @endif @endforeach
Nombre
Pais
Cuadros
{{$pintor->nombre}}
{{$pintor->pais}}
{{$pintor->cuadros->count()}}
@endsection