@extends('layouts.app')

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

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

@section('content')
    <x-page-header
        title="Add Location"
        subtitle="Offices and sites where assets are kept and employees are based.">
        <x-slot:breadcrumbs>
            <li class="breadcrumb-item"><a href="{{ route('masters.locations.index') }}">Locations</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.locations.store') }}" novalidate>
                        @csrf

                        @include('masters.locations._form', ['location' => $location])

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