@extends('app')

@section('title', $title)

@section('content')
    <h1>{{ $title }}</h1>
    <h2>service</h2>

    <form action="/service" method="post">
        <input type="text" name="name" autocomplete="off">
        @csrf 
        <button>Add Service</button>
    </form>
    @error('name') {{ $message }} @enderror

    <p>service content</p>

    @forelse($services as $v)
        <li>{{ $v->name }}</li>
    @empty
        <li>No services</li>
    @endforelse
@endsection  