@extends('layouts.app')

@section('title', 'Create Salesman')
@section('page-title', 'Create Salesman')

@section('content')
<div class="container-fluid">
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-header">
                    <h4 class="card-title">Add New Salesman</h4>
                </div>
                <div class="card-body">
                    <form action="{{ route('salesmen.store') }}" method="POST">
                        @csrf
                        <div class="form-group">
                            <label for="name">Salesman Name</label>
                            <input type="text" name="name" id="name" class="form-control" required>
                        </div>
                        <button type="submit" class="btn btn-primary">Create</button>
                        <a href="{{ route('salesmen.index') }}" class="btn btn-secondary">Cancel</a>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection