parent
95cf05f0d6
commit
11236a253f
|
|
@ -69,7 +69,12 @@
|
|||
<x-layout.page-section>
|
||||
<x-slot:section_name>Payment Address</x-slot:section_name>
|
||||
<x-form.body-grid columns="12" class="m-3">
|
||||
<x-form.field label_text="Payment Address" name="payment_address" colspan="5" :value="auditionSetting('payment_address')"/>
|
||||
{{-- <x-form.field label_text="Payment Address" name="payment_address" colspan="5" :value="auditionSetting('payment_address')"/>--}}
|
||||
<x-form.textarea colspan="5" name="payment_address" id="payment_address" rows="5">
|
||||
<x-slot:label>Payment Address</x-slot:label>
|
||||
{{ auditionSetting('payment_address') }}
|
||||
</x-form.textarea>
|
||||
|
||||
<x-form.field label_text="Payment City" name="payment_city" colspan="3" :value="auditionSetting('payment_city')"/>
|
||||
<x-form.field label_text="Payment State" name="payment_state" colspan="2" :value="auditionSetting('payment_state')"/>
|
||||
<x-form.field label_text="Payment Zip" type="number" name="payment_zip" colspan="2" :value="auditionSetting('payment_zip')"/>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,24 @@
|
|||
@props(['colspan'=>'1'])
|
||||
@php
|
||||
$classes = "block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6";
|
||||
$colspan_classes = [
|
||||
'1' => '',
|
||||
'2' => 'sm:col-span-2',
|
||||
'3' => 'sm:col-span-3',
|
||||
'4' => 'sm:col-span-4',
|
||||
'5' => 'sm:col-span-5',
|
||||
'6' => 'sm:col-span-6',
|
||||
'7' => 'sm:col-span-7',
|
||||
'8' => 'sm:col-span-8',
|
||||
'9' => 'sm:col-span-9',
|
||||
'10' => 'sm:col-span-10',
|
||||
'11' => 'sm:col-span-11',
|
||||
'12' => 'sm:col-span-12'
|
||||
];
|
||||
@endphp
|
||||
<div @if($colspan > 1) class="{{ $colspan_classes["$colspan"] }}" @endif>
|
||||
<label for="comment" class="block text-sm font-medium leading-6 text-gray-900">{{ $label }}</label>
|
||||
<div>
|
||||
<textarea {{ $attributes->merge(['class'=>$classes]) }}>{{ $slot }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
Loading…
Reference in New Issue