Se agrega seccion de evento
This commit is contained in:
@ -8,21 +8,25 @@
|
||||
<div class="ui tabular stackable compact menu">
|
||||
<a class="active item servicio" data-filter="none">Todos</a>
|
||||
@foreach ($servicios as $i => $servicio)
|
||||
<a class="item servicio" data-filter="{{$i}}">{{$servicio->titulo}}</a>
|
||||
<a class="item servicio" data-filter="{{$servicio->titulo}}">{{$servicio->titulo}}</a>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui center aligned grid" id="eventos_cards">
|
||||
@foreach ($eventos as $evento)
|
||||
@foreach ($eventos as $i => $evento)
|
||||
<div class="eight wide tablet four wide computer column">
|
||||
<div class="ui basic segment">
|
||||
{!!$evento->image!!}
|
||||
<div class="ui center aligned header">
|
||||
{{$evento->titulo}}
|
||||
<br />
|
||||
{{$evento->empresa}}
|
||||
</div>
|
||||
<a href="{{$urls->base}}/evento/{{$i}}">
|
||||
<div class="ui image">
|
||||
<img src="{{$evento->imagen}}" />
|
||||
</div>
|
||||
<div class="ui center aligned header">
|
||||
{{$evento->titulo}}
|
||||
<br />
|
||||
{{$evento->empresa}}
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
@endforeach
|
||||
@ -36,9 +40,9 @@
|
||||
@foreach ($eventos as $evento)
|
||||
{
|
||||
titulo: '{{$evento->titulo}}',
|
||||
image: '{!!$evento->image!!}',
|
||||
image: '{{$evento->imagen}}',
|
||||
empresa: '{{$evento->empresa}}',
|
||||
servicio: {{$evento->servicio}}
|
||||
servicio: '{{$evento->servicio}}'
|
||||
},
|
||||
@endforeach
|
||||
];
|
||||
@ -51,10 +55,16 @@
|
||||
}
|
||||
grid.append(
|
||||
$('<div></div>').attr('class', 'eight wide tablet four wide computer column').append(
|
||||
$('<div></div>').attr('class', 'ui basic segment').append(el.image).append(
|
||||
$('<div></div>').attr('class', 'ui center aligned header').append(el.titulo).append(
|
||||
$('<br />')
|
||||
).append(el.empresa)
|
||||
$('<div></div>').attr('class', 'ui basic segment').append(
|
||||
$('<a></a>').attr('href', '{{$urls->base}}/evento/' + i).append(
|
||||
$('<div></div>').attr('class', 'ui image').append(
|
||||
$('<img />').attr('src', el.image)
|
||||
)
|
||||
).append(
|
||||
$('<div></div>').attr('class', 'ui center aligned header').append(el.titulo).append(
|
||||
$('<br />')
|
||||
).append(el.empresa)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user