@extends('employee.layouts.app')
@section('title', 'Create Weight | Career Development and Consultation (CDC)')
@section('navigation')
    <h1 class="my-1 d-flex align-items-center text-dark fw-bolder fs-3">Weight
        <span class="mx-2 border-gray-200 h-20px border-start ms-3"></span>
        <small class="my-1 text-muted fs-7 fw-bold ms-1">Create Weight</small>
    </h1>
@endsection
@section('content')
    <div class="card">
        <div class="pt-4 border card-body">
            <form action="{{ route('weights.store') }}" method="POST" class="form" autocomplete="off">
                @csrf
                <div class="pt-4 mb-8 d-flex flex-column fv-row">
                    <label class="mb-2 d-flex align-items-center fs-6 fw-bold">
                        <span class="required">Nilai Bobot</span>
                        <i class="fas fa-exclamation-circle ms-2 fs-7" data-bs-toggle="tooltip"
                            title="Nilai bobot (Dapat berupa bilangan desimal)"></i>
                    </label>
                    <input type="text" class="form-control form-control-solid" placeholder="Contoh: 0.1" name="weight"
                        value="{{ old('weight') }}" />
                    @error('weight')
                        <div class="fv-plugins-message-container invalid-feedback">
                            <span>{{ $message }}</span>
                        </div>
                    @enderror
                </div>
                <div class="d-flex justify-content-end">
                    <a href="{{ route('weights') }}" class="btn btn-light btn-active-light-primary me-2">Kembali</a>
                    <button type="submit" class="btn btn-primary">Simpan</button>
                </div>
            </form>
        </div>
    </div>
@endsection
