@extends('layouts.app')
@section('title', 'Novo proprietário')
@section('page-title', 'Novo proprietário')
@section('content')
    @include('partials.flash')
    <div class="mx-auto max-w-xl rounded-xl border border-slate-200 bg-white p-6 shadow-sm">
        <form method="POST" action="{{ route('owners.store') }}" class="space-y-4">
            @csrf
            <label class="block text-sm"><span class="mb-1 block font-medium">Nome</span>
                <input name="name" required class="w-full rounded-lg border border-slate-300 px-3 py-2 text-sm" value="{{ old('name') }}">
            </label>
            <label class="block text-sm"><span class="mb-1 block font-medium">Documento</span>
                <input name="document" class="w-full rounded-lg border border-slate-300 px-3 py-2 text-sm" value="{{ old('document') }}">
            </label>
            <label class="block text-sm"><span class="mb-1 block font-medium">WhatsApp / telefone</span>
                <input name="phone" class="w-full rounded-lg border border-slate-300 px-3 py-2 text-sm" value="{{ old('phone') }}">
            </label>
            <label class="block text-sm"><span class="mb-1 block font-medium">E-mail</span>
                <input type="email" name="email" class="w-full rounded-lg border border-slate-300 px-3 py-2 text-sm" value="{{ old('email') }}">
            </label>
            <button class="rounded-lg bg-emerald-600 px-4 py-2 text-sm font-semibold text-white">Salvar</button>
        </form>
    </div>
@endsection
