@extends('admin.layout') @section('subtitle') Edit Weapon {{ $weapon -> name }} @stop @section('content')

{{ $weapon -> name }} Edit

{{ Form::open( array('url' => action('WeaponController@update', array('id' => $game -> id, 'weaponID' => $weapon -> id)), 'class' => 'form-horizontal', 'files' => true)) }}
{{ Form::label('name', 'Weapon Name:', array('class' => 'control-label')) }} {{ Form::text('name', $weapon -> name, array('class' => 'form-control input-lg', 'placeholder' => 'Name', 'required' => '')) }}
{{ Form::label('type', 'Weapon Type:', array('class' => 'control-label')) }} {{ Form::text('type', $weapon -> type, array('class' => 'form-control input-lg', 'placeholder' => 'Type', 'required' => '')) }}
{{ Form::label('min_attachments', 'Min Attachments:', array('class' => 'control-label')) }} {{ Form::text('min_attachments', $weapon -> 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', $weapon -> 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