Skip to content

Instantly share code, notes, and snippets.

@jongravois
Created April 29, 2020 20:38
Show Gist options
  • Save jongravois/5f0bfa3bf0057236ca8bdac7398c3742 to your computer and use it in GitHub Desktop.
Save jongravois/5f0bfa3bf0057236ca8bdac7398c3742 to your computer and use it in GitHub Desktop.
<div>
@json($bands)
<table class="w-full tw-table">
<thead>
<tr>
<th>Low</th>
<th>High</th>
<th>Rate</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<input type="text" class="tw-input"
wire:model="newLow">
</td>
<td>
<input type="text" class="tw-input"
wire:model="newHigh">
</td>
<td>
<input type="text" class="tw-input"
wire:model="newPercent">
</td>
<td>
@svg('solid/plus', 'text-green-500')
</td>
</tr>
@forelse($bands as $band)
<tr>
<td>
<input type="text" class="tw-input"
wire:model="band.low">
</td>
<td>
<input type="text" class="tw-input"
wire:model="band.high">
</td>
<td>
<input type="text" class="tw-input"
wire:model="band.percent">
</td>
<td>
@svg('solid/times', 'text-red-500')
</td>
</tr>
@empty
<tr>
<td colspan="4" class="font-semibold">
No bands found.
</td>
</tr>
@endforelse
</tbody>
</table>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment