@extends('partials.layout')

@section('title','Crear turno')
@section('subtitle','Agregar un nuevo registro en turnos')

@section('back')
    <a class="btn" href="{{ route('turnos.index') }}">← Volver</a>
@endsection

@section('content')
    <form method="POST" action="{{ route('turnos.store') }}">
        @csrf
        <div style="display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px">
            <div style="grid-column:1/-1">
                <label style="display:block;font-weight:700;margin-bottom:6px">Turnos</label>
                <input name="turnos" type="text" value="{{ old('turnos') }}" required style="width:100%;padding:10px;border:1px solid #e2e8f0;border-radius:10px">
            </div>
        </div>

        <div style="margin-top:14px;display:flex;gap:10px;flex-wrap:wrap">
            <button class="btn primary" type="submit">Guardar</button>
            <a class="btn" href="{{ route('turnos.index') }}">Cancelar</a>
        </div>
    </form>
@endsection

