menerapkan generate code system di feature Jenis Fasilitas Kredit

This commit is contained in:
Andy Chaerudin
2024-08-22 20:40:24 +07:00
parent 3fc9e8fd0c
commit 1ee42703ba
6 changed files with 100 additions and 10 deletions

View File

@@ -1,3 +1,7 @@
@php
$route = explode('.', Route::currentRouteName());
@endphp
@extends('layouts.main')
@section('breadcrumbs')
@@ -28,11 +32,8 @@
<label class="form-label max-w-56">
Code
</label>
<div class="flex flex-wrap items-baseline w-full">
<input class="input @error('code') border-danger @enderror" type="text" name="code" value="{{ $jenisFasilitasKredit->code ?? '' }}">
@error('code')
<em class="alert text-danger text-sm">{{ $message }}</em>
@enderror
<div id="{{$route[1]}}_code" class="flex flex-wrap items-baseline w-full">
{{ $jenisFasilitasKredit->code ?? '-' }}
</div>
</div>
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">