Aplikasi Keuangan yang mengatur lalu lintas transaksi antara bank dan aplikasi internal Kampus
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.
 
 
 
 
 

21 lines
738 B

@props(['label' => '', 'name' => '', 'feedback' => null, 'id' => null])
@php($name = $attributes->whereStartsWith('wire:model')->first() ?? $name)
<div class="form-check">
<input
{{
$attributes->merge([
'class' => 'form-check-input'.($errors->has($name) ? ' is-invalid' : ''),
'id' => $id,
])
}}
type="checkbox"
/>
<label class="form-check-label" for="{{ $id }}">{{ $label }}</label>
@if ($feedback)
<span x-text="feedback?.{{ $name }}" x-bind:class="{ 'invalid-feedback': feedback?.{{ $name }} }"></span>
@elseif ($errors->has($name))
<span class="invalid-feedback">{{ $errors->first($name) }}</span>
@endif
</div>