- add deal category migration - add deals migration and model - add form to create deal - add image preview modal when uploading the image - refactor UI components to support `required` attribute - refactor input component to support description - fix some UI components does not support old values - fix some UI components does not show error messages
18 lines
525 B
PHP
18 lines
525 B
PHP
@props(['title' => '', 'description' => '', 'backLink' => ''])
|
|
<section class="flex space-x-6 items-center wrapper py-6 shadow">
|
|
|
|
@if($backLink !== '')
|
|
<div class="">
|
|
<a href="{{$backLink}}">
|
|
<x-heroicon-o-arrow-left class="w-4"/>
|
|
</a>
|
|
</div>
|
|
@endif
|
|
<div class="">
|
|
<h1 class="text-xl font-bold">{{$title}}</h1>
|
|
@if($description !== '')
|
|
<p class="text-sm text-accent-600">{{$description}}</p>
|
|
@endif
|
|
</div>
|
|
</section>
|