2021-11-29 13:17:49 +02:00
|
|
|
{{-- Form without any design --}}
|
|
|
|
|
|
|
|
|
|
{{-- TASK: add the validation errors here - with whatever HTML structure you want --}}
|
|
|
|
|
{{-- in case of title/description empty, visitor should see --}}
|
|
|
|
|
{{-- "The name field is required." and "The description field is required." --}}
|
|
|
|
|
|
2025-04-21 13:06:16 +09:00
|
|
|
@if ($errors->any())
|
|
|
|
|
|
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
|
<ul>
|
|
|
|
|
@foreach ($errors->all() as $error )
|
|
|
|
|
<li>{{ $error }}</li>
|
|
|
|
|
@endforeach
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@endif
|
|
|
|
|
|
2021-11-29 13:17:49 +02:00
|
|
|
<form method="POST" action="{{ route('projects.store') }}">
|
|
|
|
|
@csrf
|
|
|
|
|
Title:
|
|
|
|
|
<br />
|
|
|
|
|
<input type="text" name="title" />
|
|
|
|
|
<br /><br />
|
|
|
|
|
Description:
|
|
|
|
|
<br />
|
|
|
|
|
<input type="text" name="description" />
|
|
|
|
|
<br /><br />
|
|
|
|
|
<button type="submit">Save</button>
|
|
|
|
|
</form>
|