Skip to content

Commit

Permalink
Update matrix-choice.blade.php
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Sep 4, 2024
1 parent fc9a55f commit be52ef1
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions resources/views/components/matrix-choice.blade.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<x-dynamic-component :component="$getFieldWrapperView()" :field="$field">
@php
$statePath = $getStatePath();
$pilColor = $getPilColor();
$id = $getId();
$rowData = $getRowData();
$columnData = $getColumnData();
@endphp
@php
$statePath = $getStatePath();
$pilColor = $getPilColor();
$id = $getId();
$rowData = $getRowData();
$columnData = $getColumnData();
$isDisabled = $isDisabled();
@endphp

<x-dynamic-component :component="$getFieldWrapperView()" :field="$field">
<div class="overflow-x-auto shadow ring-1 ring-gray-200 dark:ring-white/10 ring-opacity-5 rounded-lg">
<table class="w-full table-auto divide-y divide-gray-200 dark:divide-white/5 bg-white dark:bg-gray-900">
<thead>
Expand All @@ -27,13 +28,13 @@
@endphp
<td class="p-2 text-center">
<input
@if($isOptionDisabled($columnKey,'') && $isOptionDisabled($rowKey,'')) disabled @endif
wire:key="{{ $id }}.{{ $rowKey }}"
wire:loading.attr="disabled"
{{ $applyStateBindingModifiers('wire:model') }}="{{ $supStatPath }}"
value="{{ $columnKey }}"
type="{{ $pilColor }}"
class="mt-1 border-none bg-white shadow-sm ring-1 transition duration-75 checked:ring-0 focus:ring-2 focus:ring-offset-0 disabled:bg-gray-50 disabled:text-gray-50 disabled:checked:bg-current disabled:checked:text-gray-400 dark:bg-white/5 dark:disabled:bg-transparent dark:disabled:checked:bg-gray-600 text-custom-600 ring-gray-950/10 focus:ring-custom-600 checked:focus:ring-custom-500/50 dark:text-custom-500 dark:ring-white/20 dark:checked:bg-custom-500 dark:focus:ring-custom-500 dark:checked:focus:ring-custom-400/50 dark:disabled:ring-white/10"
@if($isDisabled || ($isOptionDisabled($columnKey,'') && $isOptionDisabled($rowKey,''))) disabled @endif
wire:key="{{ $id }}.{{ $rowKey }}"
wire:loading.attr="disabled"
{{ $applyStateBindingModifiers('wire:model') }}="{{ $supStatPath }}"
value="{{ $columnKey }}"
type="{{ $pilColor }}"
class="mt-1 border-none bg-white shadow-sm ring-1 transition duration-75 checked:ring-0 focus:ring-2 focus:ring-offset-0 disabled:bg-gray-50 disabled:text-gray-50 disabled:checked:bg-current disabled:checked:text-gray-400 dark:bg-white/5 dark:disabled:bg-transparent dark:disabled:checked:bg-gray-600 text-custom-600 ring-gray-950/10 focus:ring-custom-600 checked:focus:ring-custom-500/50 dark:text-custom-500 dark:ring-white/20 dark:checked:bg-custom-500 dark:focus:ring-custom-500 dark:checked:focus:ring-custom-400/50 dark:disabled:ring-white/10"
/>
</td>
@endforeach
Expand Down

0 comments on commit be52ef1

Please sign in to comment.