post.blade.php 3.08 KB
@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