-
Notifications
You must be signed in to change notification settings - Fork 3
/
ships.blade.php
71 lines (68 loc) · 2.99 KB
/
ships.blade.php
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
<br>
<div class="text-center">
<p><i style="color:red" class="fa fa-exclamation-circle" aria-hidden="true"></i> Click a ship to see missing requirements (if any) <i style="color:red" class="fa fa-exclamation-circle" aria-hidden="true"></i> <p>
<div class="btn-group">
<!-- JS sorting for known ships, unknown ships, all ships -->
<button type="button" class="btn btn-primary ships_all">Show All</button>
<button type="button" class="btn btn-success ships_fly">Can Fly</button>
<button type="button" class="btn btn-danger ships_notfly">Cannot Fly</button>
</div>
</div>
<br />
<select class="form-control center-block" id="ship-dropdown" style="width:150px">
<option>Jump to Ship</option>
@foreach($shipArray as $shp)
<option value="#{{str_replace(' ', '_', $shp)}}">{{$shp}}</option>
@endforeach
</select>
@foreach($skillEntry->shipGroupMap as $group)
@if($group->groupName == 'Elite Battleship' || $group->groupName == 'Citizen Ships')
<!-- skip unflyable ships, test ships -->
@continue
@endif
<table class="table-condensed" style="max-width:100%">
<thead>
<h4 style="font-weight:700;"> {{ $group->groupName }}</h4>
<div class="containerfluid" style="border-bottom:1px solid white"></div>
</thead>
<tbody>
<!-- map each ship to its race and group (frigate, battleship etc) -->
@foreach($skillEntry->fly as $shipType => $val)
@if($shipType == $group->groupName)
@foreach($skillEntry->races as $race)
<tr>
@php $count = 1 @endphp
@foreach($val as $shipName => $v)
@if($v->raceID == $race->raceid)
@if($count == 1)
<td >
<img src="{{ asset('/images/ccp') }}/race_{{$v->raceID}}.png">
</td>
@endif
@php $count++ @endphp
<td id="{{str_replace(' ', '_', $shipName)}}">
<div class="btn-group btn-default">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<img src="{{ asset('/images/loading.gif') }}" data-src="https://images.evetech.net/types/{{ $v->shipTypeID }}/icon?size=64" title="{{$shipName}}" class="lazy @if(isset($v->missing))grey_img @else can_fly @endif" >
</a>
<ul class="dropdown-menu" style="padding:5px;min-width:max-content">
<li style="text-align:center"><strong>{{$shipName}}</strong></li>
@if(isset($v->missing))
<li style="text-align:center">{{$v->total_time_missing ?? ''}}</li>
<li><strong>Missing Skills:</strong></li>
@foreach($v->missing as $m)
<li>{{$m}}</li>
@endforeach
@endif
</ul>
</div>
</td>
@endif
@endforeach
</tr>
@endforeach
@endif
@endforeach
</tbody>
</table>
@endforeach