Subversion Repository Public Repository

Nextrek

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
@extends('layout.main')

@section('content')
<div class="img-titolo">
	<div><hr><h2>Eventi</h2><hr></div>
	<img src="{{ URL::asset('image/eventi-bg.jpg') }}" alt="">
</div>

<div class="wrap eventi">
<article class="print">

<!-- INIZIO GRUPPO ANNO -->

	@for($i = $max; $i >= $min; $i--)
	<!-- ANNO -->
	<div class="anno decorated animate"><div class="bg"></div><span>{{ $i }}</span></div>
		@foreach($eventi->get() as $evento)
		@if(Carbon::createFromFormat('Y-m-d', $evento->data)->year==$i)
		<?php $docs = DB::table('documenti')
							->leftJoin('br_doc', 'documenti.iddocumenti', '=', 'br_doc.documenti_id')
							->where('br_doc.post_id','=',$evento->idEventi)
							->where('br_doc.sezione','=','eventi')->get();

							 ?>


		<!-- EVENTO -->
		<div class="box">
			<div class="data">{{ Carbon::createFromFormat('Y-m-d', $evento->data)->formatLocalized('%d %B %Y') }}</div>
			<div class="evento">
				<h5>{{ $evento->titolo }}</h5>
				<p>{{ $evento->descrizione }}</p>

				@if($docs)
					@foreach($docs as $doc)
					<a style="" href="/WDVBzqTvDXF3WyfGHbWUD94WUQDSKrEzCfneLXxwWDVBzq/documenti/{{ $doc->nome_file }}" target="_blank" ><i class="fa fa fa-file"></i> {{-- $doc->titolo --}}</a>
					@endforeach
				@endif

			</div>
		</div>
		@endif
		@endforeach
	<!-- DIVISORE -->
	<hr>
	@endfor

<!-- FINE GRUPPO ANNO -->
	
	<a class="decorated animate print" href="javascript:void(0)"><span><i class="fa fa-2x fa-print"></i></span></a>
	</article>
</div>



@include ('layout.info')
@include ('layout.news')
@stop

Commits for Nextrek/Aiba_backup/app/views/eventi.blade.php

Diff revisions: vs.
Revision Author Commited Message
1464 MOliva picture MOliva Tue 13 Oct, 2020 11:16:56 +0000