@extends('layout') @section('subtitle') {{ $game -> id . " - " . $weapon -> name }} @stop @section('description') {{ $game -> id }}@if($game -> short_name) ({{ $game -> short_name }})@endif {{ $weapon -> name }} loadouts are located on this page. Find the best setup for the {{ $game -> id }}@if($game -> short_name) ({{ $game -> short_name }})@endif {{ $weapon -> name }} here. @stop @section('theme-color') @stop @section('sub-header')
@stop @section('intro')
{{ $weapon -> name }}
What is the best loadout for {{ $weapon -> name }} in {{ $game -> id }}?
@stop @section('content') @if(HelperController::adsEnabled())
@endif

Top voted loadouts

@if(empty($loadouts))

There are no loadouts for the {{ $weapon -> name }} yet. Be the first to submit your favorite loadout!

@else @foreach($loadouts as $loadout)
{{ $count++ }}
@foreach(Loadout::findOrFail($loadout['id']) -> attachments as $attachment)
@if ($attachment -> thumb_url) {{ $attachment -> name }} @endif {{ $attachment -> name }}
@endforeach
@if (Auth::guest() || Auth::user() -> role == 'Guest') @if($loadout['upvoted']) {{ Form::open(array('id' => "guestUnvote", 'class' => 'pull-left', 'style' => 'margin-right: 4px','url' => '/' . $game -> id . '/' . $weapon -> name . '/' . $loadout['id'] . '/upvoteGuest')) }} {{ Form::close() }} @else @endif @elseif ($loadout['upvoted']) vote ({{ $loadout['count'] }}) @else vote ({{ $loadout['count'] }}) @endif @if (!isset($loadout['comments'])) 0 Comments @elseif ($loadout['comments'] == 1) 1 Comment @else {{ $loadout['comments'] }} Comments @endif View Loadout
@endforeach @endif

Submit your own loadout!

@if ($weapon -> min_attachments == $weapon -> max_attachments) @if ($weapon -> min_attachments == 1) Select 1 attachment. @else Select {{ $weapon -> min_attachments }} attachments. @endif @elseif ($weapon -> max_attachments - $weapon -> min_attachments == 1) Select {{ $weapon -> min_attachments }} or {{ $weapon -> max_attachments }} attachments. @else Select between {{ $weapon -> min_attachments }} and {{ $weapon -> max_attachments }} attachments. @endif

{{ Form::open( array('action' => array('LoadoutController@store', $game -> id, $weapon -> name), 'class' => 'form-horizontal', 'id' => 'storeForm')) }}
@if (Auth::guest() || Auth::user() -> role == 'Guest') @else @endif
@if (Auth::guest() || Auth::user() -> role == 'Guest') @endif {{ Form::close() }} @if(HelperController::adsEnabled())
@endif
@stop @section('scripts') @stop