@if ($attachments)
@foreach ($attachments as $attachment)
{!! Form::select(
'attachment_type[]',
[
'Item' => 'Item',
'Prompt' => 'Prompt',
'News' => 'News',
'Figure' => 'Figure',
'Fauna' => 'Fauna',
'Flora' => 'Flora',
'Faction' => 'Faction',
'Concept' => 'Concept',
'Location' => 'Location',
'Event' => 'Event',
],
$attachment->attachment_type,
['class' => 'form-control attachment-type', 'placeholder' => 'Select Attachment Type'],
) !!}
@if ($attachment->attachment_type == 'Item')
{!! Form::select('attachment_id[]', $items, $attachment->attachment_id, ['class' => 'form-control item-select', 'placeholder' => 'Select Item']) !!}
@elseif($attachment->attachment_type == 'Prompt')
{!! Form::select('attachment_id[]', $prompts, $attachment->attachment_id, ['class' => 'form-control prompt-select', 'placeholder' => 'Select Prompt']) !!}
@elseif($attachment->attachment_type == 'News')
{!! Form::select('attachment_id[]', $newses, $attachment->attachment_id, ['class' => 'form-control newse-select', 'placeholder' => 'Select News Post']) !!}
@elseif($attachment->attachment_type == 'Figure')
{!! Form::select('attachment_id[]', $figures, $attachment->attachment_id, ['class' => 'form-control figure-select', 'placeholder' => 'Select Figure']) !!}
@elseif($attachment->attachment_type == 'Fauna')
{!! Form::select('attachment_id[]', $faunas, $attachment->attachment_id, ['class' => 'form-control fauna-select', 'placeholder' => 'Select Fauna']) !!}
@elseif($attachment->attachment_type == 'Flora')
{!! Form::select('attachment_id[]', $floras, $attachment->attachment_id, ['class' => 'form-control flora-select', 'placeholder' => 'Select Flora']) !!}
@elseif($attachment->attachment_type == 'Faction')
{!! Form::select('attachment_id[]', $factions, $attachment->attachment_id, ['class' => 'form-control faction-select', 'placeholder' => 'Select Faction']) !!}
@elseif($attachment->attachment_type == 'Concept')
{!! Form::select('attachment_id[]', $concepts, $attachment->attachment_id, ['class' => 'form-control concept-select', 'placeholder' => 'Select Concept']) !!}
@elseif($attachment->attachment_type == 'Location')
{!! Form::select('attachment_id[]', $locations, $attachment->attachment_id, ['class' => 'form-control location-select', 'placeholder' => 'Select Location']) !!}
@elseif($attachment->attachment_type == 'Event')
{!! Form::select('attachment_id[]', $events, $attachment->attachment_id, ['class' => 'form-control event-select', 'placeholder' => 'Select Event']) !!}
@endif
{!! Form::text('attachment_data[]', $attachment->data, ['class' => 'form-control']) !!}