@extends('layouts.app')
@section('title', 'Space Types')
@section('content')
<h1>Space Types</h1>
<a href="{{ route('space-types.create') }}">Create</a>
<ul>@foreach($spaceTypes as $type)<li>{{ $type->name }} <a href="{{ route('space-types.edit', $type) }}">Edit</a></li>@endforeach</ul>
{{ $spaceTypes->links() }}
@endsection
