@foreach($serviceCollection as $service)

{{$service->description}}

@foreach($service->buyingOptions as $buyingOption)
{{$buyingOption->name}}
£{{$buyingOption->price}}
@if($type == 'edit')
{!! Form::open(array('route' => ['buyingoptions.destroy', $buyingOption->id], 'method' => 'delete')) !!} {!! Form::close() !!}
@endif
@endforeach @if($type == 'edit')
@if($type == 'edit') {!! Form::open(array('route' => ['services.destroy', $service->id], 'method' => 'delete', 'class' => 'pull-left')) !!} {!! Form::close() !!} @endif
{!! Form::open(array('route' => 'buyingoptions.store', 'id' => "service_$service->id", 'class' => 'collapse')) !!}
Name
Price
{!! Form::text('name', null, ['class' => 'form-control']) !!}
{!! Form::text('price', null, ['class' => 'form-control']) !!}
{!! Form::submit('Save', ['class' => 'btn btn-default form-control']) !!}
{!! Form::hidden('service_id', $service->id) !!} {!! Form::close() !!} @endif
@endforeach