You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.0 KiB
31 lines
1.0 KiB
@extends('layouts.dashboard')
|
|
|
|
@section('content')
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
@if($marca)
|
|
<h1>Editar Marca</h1>
|
|
@else
|
|
<h1>Crear Marca</h1>
|
|
@endif
|
|
</div>
|
|
<div class="col-md-12">
|
|
@if($marca)
|
|
<form action="{{ route('marca.update', $marca->id) }}" method="POST">
|
|
@csrf
|
|
@method('PUT')
|
|
@else
|
|
<form action="{{ route('marca.store') }}" method="POST">
|
|
@csrf
|
|
@endif
|
|
|
|
<div class="form-group">
|
|
<label for="nombre">Nombre</label>
|
|
<input type="text" class="form-control" id="nombre" name="nombre" required value="{{ $marca->nombre }}">
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Aceptar</button>
|
|
<a href="{{ route('marca.index') }}" class="btn btn-danger">Cancelar</a>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
@endsection
|
|
|