@extends('admin.layout') @section('subtitle') Create Weapon @stop @section('content')

Weapon New

{{ Form::open( array('action' => array('WeaponController@store', $game -> id), 'class' => 'form-horizontal', 'files' => true)) }}
{{ Form::label('name', 'Weapon Name:', array('class' => 'control-label')) }} {{ Form::text('name', '', array('class' => 'form-control input-lg', 'placeholder' => 'Name', 'required' => '')) }}
{{ Form::label('type', 'Weapon Type:', array('class' => 'control-label')) }} {{ Form::text('type', '', array('class' => 'form-control input-lg', 'placeholder' => 'Type', 'required' => '')) }}
{{ Form::label('min_attachments', 'Min Attachments:', array('class' => 'control-label')) }} {{ Form::text('min_attachments', '', array('class' => 'form-control input-lg', 'placeholder' => 'Min', 'required' => '')) }}
{{ Form::label('max_attachments', 'Max Attachments:', array('class' => 'control-label')) }} {{ Form::text('max_attachments', '', array('class' => 'form-control input-lg', 'placeholder' => 'Max', 'required' => '')) }}
@foreach($attachmentsBySlot as $key => $slot)
{{ Form::label('', 'Slot ' . $key, array('class' => 'control-label')) }}
@foreach($slot as $attachment) @endforeach
@endforeach
{{ Form::label('image', 'Upload Image: ', array('class' => 'control-label'))}} {{ Form::file('image', '', array('class' => 'form-control input-lg')) }}
{{ Form::close() }}
@stop @section('page-scripts') @stop