@extends('layouts.app')

@section('content')
<div class="container">
    <h2>Add Customer</h2>
    <form method="POST" action="{{ route('customers.store') }}">
        @csrf
        <div class="mb-3">
            <label for="email" class="form-label">Email</label>
            <input type="email" class="form-control" id="email" name="email" required value="{{ old('email') }}">
        </div>
        <div class="mb-3">
            <label for="phone" class="form-label">Phone</label>
            <input type="text" class="form-control" id="phone" name="phone" required value="{{ old('phone') }}">
        </div>
        <div class="form-check mb-3">
            <input class="form-check-input" type="checkbox" id="is_owner" name="is_owner" value="1" {{ old('is_owner') ? 'checked' : '' }}>
            <label class="form-check-label" for="is_owner">Is Owner</label>
        </div>
        <button type="submit" class="btn btn-primary">Add Customer</button>
        <a href="{{ route('customers.index') }}" class="btn btn-secondary">Cancel</a>
    </form>
</div>
@endsection 