@extends('layouts.app')

@section('title', 'Add Team')

@section('container-class', 'ams-container--narrow')

@section('content')
    <x-page-header
        title="Add Team"
        subtitle="Teams group employees and drive reporting.">
        <x-slot:breadcrumbs>
            <li class="breadcrumb-item"><a href="{{ route('masters.teams.index') }}">Teams</a></li>
            <li class="breadcrumb-item active" aria-current="page">Add</li>
        </x-slot:breadcrumbs>
    </x-page-header>

    <div class="row">
        <div class="col-xl-8">
            <div class="card">
                <div class="card-body p-4">
                    <form method="POST" action="{{ route('masters.teams.store') }}" novalidate>
                        @csrf

                        @include('masters.teams._form', ['team' => $team, 'employees' => $employees])

                        <div class="ams-form-actions">
                            <button type="submit" class="btn btn-primary">
                                <i class="bi bi-check2" aria-hidden="true"></i>Create Team
                            </button>
                            <a href="{{ route('masters.teams.index') }}" class="btn btn-ghost">Cancel</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
@endsection
