Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
3.7 kB
0
Indexable
Never
@extends('layout.master')

@push('plugin-styles')
    <link href="{{ asset('nobleui/assets/plugins/select2/select2.min.css') }}" rel="stylesheet" />
@endpush

@section('content')
    <nav class="page-breadcrumb">
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="#">Eventos</a></li>
            <li class="breadcrumb-item active" aria-current="page">Nuevo</li>
        </ol>
    </nav>

    <div class="row">
        <div class="col-lg-12 grid-margin stretch-card">
            <div class="card">
                <div class="card-body">
                    @if ($errors->any())
                        <div class="alert alert-danger alert-dismissible fade show" role="alert">
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                            <button type="button" class="btn-close" data-bs-dismiss="alert"
                                aria-label="btn-close"></button>
                        </div>
                    @endif
                    <h4 class="card-title">Nuevo evento</h4>
                    <form class="cmxform" id="frmEvento" method="post" action="">
                        @csrf

                        <div class="row">
                            <div class="col-sm-12">
                                <div class="mb-3">
                                    <label class="form-label">Nombre</label>
                                    <input class="form-control" id="Nombre" name="Nombre" maxlength="255"
                                        value="{{ old('Nombre') }}" autocomplete="off" placeholder="Ingrese el nombre del evento" required>
                                </div>
                            </div>
                        </div>

                        <div class="row">
                            <div class="col-sm-12">
                                <div class="mb-3">
                                    <label class="form-label">Descripcion</label>
                                    <textarea class="form-control" maxlength="250" name="Descripcion" id="Descripcion" cols="30"
                                        rows="3" placeholder="..." required>{{ old('Descripcion') }}</textarea>
                                </div>
                            </div>
                        </div>

                        <div class="col-sm-6">
                            <div class="mb-3">
                                <label class="form-label">Elgir tipo de evento</label>
                                <select class="form-select" id="DefinirEventoPaga" name="DefinirEventoPaga" required>
                                    <option selected="" disabled="">Click para seleccionar</option>
                                    <option value="1">Pago</option>
                                    <option value="0">Gratuito</option>

                                </select>
                            </div>
                        </div>



                        <input class="btn btn-primary" type="submit" value="Guardar">
                    </form>
                </div>
            </div>
        </div>
    </div>
@endsection

@push('plugin-scripts')
    <script src="{{ asset('nobleui/assets/plugins/jquery-validation/jquery.validate.min.js') }}"></script>
    <script src="{{ asset('nobleui/assets/plugins/bootstrap-maxlength/bootstrap-maxlength.min.js') }}"></script>
    <script src="{{ asset('nobleui/assets/plugins/select2/select2.min.js') }}"></script>
@endpush

@push('custom-scripts')
@endpush