post.blade.php
3.08 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
@extends('layouts.default')
@section('title', \FootyRoom\Support\Utils\Helpers::title('Hall Of Fame'))
@push('styles')
<link rel="stylesheet" type="text/css" href="/css/history.css?v=4">
@endpush
@section('content')
<div class="site-tree hidden-xs hidden-ms">
<a href="/">Home</a>
<div class="separator"></div>
<a href="/hall-of-fame">Hall Of Fame</a>
<div class="separator"></div>
<a href="/hall-of-fame/{{ $player->period }}-{{ $player->period + 10 }}">{{ $player->period }}'s</a>
<div class="separator"></div>
{{ $post->title }}
<div class="separator"></div>
</div>
<div id="mainBox" class="clearfix hof-profile">
<div class="col-xs-12 col-md-4 pull-right">
<div class="player_box col-ms-6 col-md-12 col-ms-push-3 col-md-push-0">
<div class="text-center">
<img src="https://images.footyroom.com/hof/{{ $player->period }}/{{ $player->photo }}" /><br/>
<span class="name">{{ $player->name }}</span>
</div>
<br/>
<span class="lable">Date of Birth:</span> {{ $player->dob }}<br/>
<span class="lable">Place of birth:</span> {{ $player->pob }}<br/>
<span class="lable">Height:</span> {{ $player->height }}<br/>
<span class="lable">Playing Position:</span> {{ $player->position }}
</div>
</div>
<div class="col-md-8">
@if (isset($post->meta['video'][0]))
<div id="video_div" style="margin: 30px 0; clear: both;">
<div id="video"></div>
</div>
<script type="text/javascript">
angular.injector(['mediaEmbedder']).get('mediaEmbedder').embed({!! $post->meta['video'][0] !!}, "#video");
</script>
@endif
<div class="section-heading">Player Record</div>
<table class="record">
<thead>
<tr>
<th width="200px">Club</th><th width="100px">Years</th><th width="50px">Apps.</th><th width="50px">Goals</th>
</tr>
</thead>
<tbody>
@foreach ($records as $record)
<tr>
<td>{{ $record->club }}</td><td>{{ $record->years }}</td><td>{{ $record->apps }}</td><td>{{ $record->goals }}</td>
</tr>
@endforeach
</tbody>
</table>
<div class="section-heading">Individual Honours</div>
<ul class="honours">
@foreach ($honours as $honour)
<li><span>{{ $honour->honour }}:</span> {{ $honour->years }}</li>
@endforeach
</ul>
</div>
<div class="related col-md-4">
<div class="related-title">Hall Of Fame - {{ $player->period . '\'s' }}</div>
<div class="row small-gutter">
@foreach($relatedPlayers as $relatedPlayer)
<div class="col-xs-6 col-ms-4 col-md-6">
<a class="postcard postcard--related" href="/hall-of-fame/{{ $relatedPlayer->slug }}">
<div class="postcard-image" style="background: url(https://images.footyroom.com/hof/{{ $relatedPlayer->period }}/{{ $relatedPlayer->photo }}) center center / cover no-repeat;"></div>
<div class="postcard-text">
<div class="postcard-text-overlay"></div>
<div class="postcard-title">{!! $relatedPlayer->nicename !!}</div>
</div>
</a>
</div>
@endforeach
</div>
</div>
</div>
@endsection