th and td classnames edited for bulkaction
This commit is contained in:
parent
9572cf5df6
commit
04f75754f4
@ -62,6 +62,9 @@ class Td extends Component
|
||||
case 'right':
|
||||
$default = $class . ' ltr:pl-6 rtl:pr-6 ltr:text-right rtl:text-left ' . $default;
|
||||
break;
|
||||
case 'bulkaction':
|
||||
$default = $class . 'ltr:pr-6 rtl:pl-6 hidden sm:table-cell';
|
||||
break;
|
||||
case 'action':
|
||||
$default = 'p-0';
|
||||
break;
|
||||
|
@ -63,6 +63,9 @@ class Th extends Component
|
||||
case 'right':
|
||||
$default = $class . ' ltr:pl-6 rtl:pr-6 ltr:text-right rtl:text-left' . $default;
|
||||
break;
|
||||
case 'bulkaction':
|
||||
$default = $class . 'ltr:pr-6 rtl:pl-6 hidden sm:table-cell';
|
||||
break;
|
||||
default:
|
||||
$default = $class . ' ltr:pr-6 rtl:pl-6 ltr:text-left rtl:text-right ' . $default;
|
||||
}
|
||||
|
@ -26,7 +26,7 @@
|
||||
<x-table>
|
||||
<x-table.thead>
|
||||
<x-table.tr>
|
||||
<x-table.th class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.th kind="bulkaction">
|
||||
<x-index.bulkaction.all />
|
||||
</x-table.th>
|
||||
|
||||
@ -47,7 +47,7 @@
|
||||
<x-table.tbody>
|
||||
@foreach($users as $item)
|
||||
<x-table.tr href="{{ route('users.edit', $item->id) }}">
|
||||
<x-table.td class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.td kind="bulkaction">
|
||||
<x-index.bulkaction.single
|
||||
id="{{ $item->id }}"
|
||||
name="{{ $item->name }}"
|
||||
|
@ -27,7 +27,7 @@
|
||||
<x-table>
|
||||
<x-table.thead>
|
||||
<x-table.tr>
|
||||
<x-table.th class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.th kind="bulkaction">
|
||||
<x-index.bulkaction.all />
|
||||
</x-table.th>
|
||||
|
||||
@ -58,7 +58,7 @@
|
||||
<x-table.tbody>
|
||||
@foreach($accounts as $item)
|
||||
<x-table.tr href="{{ route('accounts.show', $item->id) }}">
|
||||
<x-table.td class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.td kind="bulkaction">
|
||||
<x-index.bulkaction.single id="{{ $item->id }}" name="{{ $item->name }}" />
|
||||
</x-table.td>
|
||||
|
||||
|
@ -42,7 +42,7 @@
|
||||
<x-table>
|
||||
<x-table.thead>
|
||||
<x-table.tr>
|
||||
<x-table.th class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.th kind="bulkaction">
|
||||
<x-index.bulkaction.all />
|
||||
</x-table.th>
|
||||
|
||||
@ -72,7 +72,7 @@
|
||||
<x-table.tbody>
|
||||
@foreach($reconciliations as $item)
|
||||
<x-table.tr href="{{ route('reconciliations.edit', $item->id) }}">
|
||||
<x-table.td class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.td kind="bulkaction">
|
||||
<x-index.bulkaction.single id="{{ $item->id }}" name="{{ $item->account->name }}" />
|
||||
</x-table.td>
|
||||
|
||||
|
@ -39,7 +39,7 @@
|
||||
<x-table>
|
||||
<x-table.thead>
|
||||
<x-table.tr>
|
||||
<x-table.th class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.th kind="bulkaction">
|
||||
<x-index.bulkaction.all />
|
||||
</x-table.th>
|
||||
|
||||
@ -83,7 +83,7 @@
|
||||
<x-table.tbody>
|
||||
@foreach($transactions as $item)
|
||||
<x-table.tr href="{{ route('recurring-transactions.show', $item->id) }}">
|
||||
<x-table.td class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.td kind="bulkaction">
|
||||
<x-index.bulkaction.single id="{{ $item->id }}" name="{{ $item->contact->name }}" />
|
||||
</x-table.td>
|
||||
|
||||
|
@ -92,7 +92,7 @@
|
||||
<x-table>
|
||||
<x-table.thead>
|
||||
<x-table.tr>
|
||||
<x-table.th class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.th kind="bulkaction">
|
||||
<x-index.bulkaction.all />
|
||||
</x-table.th>
|
||||
|
||||
@ -136,7 +136,7 @@
|
||||
<x-table.tbody>
|
||||
@foreach($transactions as $item)
|
||||
<x-table.tr href="{{ route('transactions.show', $item->id) }}">
|
||||
<x-table.td class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.td kind="bulkaction">
|
||||
<x-index.bulkaction.single id="{{ $item->id }}" name="{{ $item->contact->name }}" />
|
||||
</x-table.td>
|
||||
|
||||
|
@ -46,7 +46,7 @@
|
||||
<x-table>
|
||||
<x-table.thead>
|
||||
<x-table.tr>
|
||||
<x-table.th class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.th kind="bulkaction">
|
||||
<x-index.bulkaction.all />
|
||||
</x-table.th>
|
||||
|
||||
@ -99,7 +99,7 @@
|
||||
@endphp
|
||||
|
||||
<x-table.tr href="{{ route('transfers.show', $item->id) }}">
|
||||
<x-table.td class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.td kind="bulkaction">
|
||||
<x-index.bulkaction.single id="{{ $item->id }}" name="{{ $item->expense_transaction->account->name }}" />
|
||||
</x-table.td>
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
<x-table>
|
||||
<x-table.thead>
|
||||
<x-table.tr>
|
||||
<x-table.th class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.th kind="bulkaction">
|
||||
<x-index.bulkaction.all />
|
||||
</x-table.th>
|
||||
|
||||
@ -67,7 +67,7 @@
|
||||
<x-table.tbody>
|
||||
@foreach($companies as $item)
|
||||
<x-table.tr href="{{ route('companies.edit', $item->id) }}">
|
||||
<x-table.td class="ltr:pr-6 rtl:pl-6" hidden-mobile override="class">
|
||||
<x-table.td kind="bulkaction">
|
||||
@if ((company_id() != $item->id))
|
||||
<x-index.bulkaction.single id="{{ $item->id }}" name="{{ $item->name }}" />
|
||||
@else
|
||||
|
@ -19,7 +19,7 @@
|
||||
<x-table>
|
||||
<x-table.thead>
|
||||
<x-table.tr>
|
||||
<x-table.th class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.th kind="bulkaction">
|
||||
<x-index.bulkaction.all />
|
||||
</x-table.th>
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
<x-table.tbody>
|
||||
@foreach($dashboards as $item)
|
||||
<x-table.tr href="{{ route('dashboards.edit', $item->id) }}">
|
||||
<x-table.td class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.td kind="bulkaction">
|
||||
<x-index.bulkaction.single id="{{ $item->id }}" name="{{ $item->name }}" />
|
||||
</x-table.td>
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
||||
<x-table>
|
||||
<x-table.thead>
|
||||
<x-table.tr>
|
||||
<x-table.th class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.th kind="bulkaction">
|
||||
<x-index.bulkaction.all />
|
||||
</x-table.th>
|
||||
|
||||
@ -79,7 +79,7 @@
|
||||
<x-table.tbody>
|
||||
@foreach($items as $item)
|
||||
<x-table.tr href="{{ route('items.edit', $item->id) }}">
|
||||
<x-table.td class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.td kind="bulkaction">
|
||||
<x-index.bulkaction.single id="{{ $item->id }}" name="{{ $item->name }}" />
|
||||
</x-table.td>
|
||||
|
||||
|
@ -45,7 +45,7 @@
|
||||
<x-table>
|
||||
<x-table.thead>
|
||||
<x-table.tr>
|
||||
<x-table.th class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.th kind="bulkaction">
|
||||
<x-index.bulkaction.all />
|
||||
</x-table.th>
|
||||
|
||||
@ -66,7 +66,7 @@
|
||||
<x-table.tbody>
|
||||
@foreach($categories as $item)
|
||||
<x-table.tr href="{{ route('categories.edit', $item->id) }}" class="relative flex items-center border-b hover:bg-gray-100 px-1 group transition-all">
|
||||
<x-table.td class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.td kind="bulkaction">
|
||||
<x-index.bulkaction.single id="{{ $item->id }}" name="{{ $item->name }}" />
|
||||
</x-table.td>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
@if ($sub_category->sub_categories)
|
||||
<x-table.tr data-collapse="child-{{ $parent_category->id }}" data-animation class="relative flex items-center hover:bg-gray-100 px-1 group border-b transition-all collapse-sub" href="{{ route('categories.edit', $sub_category->id) }}">
|
||||
<x-table.td class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.td kind="bulkaction">
|
||||
<x-index.bulkaction.single id="{{ $sub_category->id }}" name="{{ $sub_category->name }}" />
|
||||
</x-table.td>
|
||||
|
||||
|
@ -27,7 +27,7 @@
|
||||
<x-table>
|
||||
<x-table.thead>
|
||||
<x-table.tr>
|
||||
<x-table.th class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.th kind="bulkaction">
|
||||
<x-index.bulkaction.all />
|
||||
</x-table.th>
|
||||
|
||||
@ -52,7 +52,7 @@
|
||||
<x-table.tbody>
|
||||
@foreach($currencies as $item)
|
||||
<x-table.tr href="{{ route('currencies.edit', $item->id) }}">
|
||||
<x-table.td class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.td kind="bulkaction">
|
||||
<x-index.bulkaction.single id="{{ $item->id }}" name="{{ $item->name }}" />
|
||||
</x-table.td>
|
||||
|
||||
|
@ -46,7 +46,7 @@
|
||||
<x-table>
|
||||
<x-table.thead>
|
||||
<x-table.tr>
|
||||
<x-table.th class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.th kind="bulkaction">
|
||||
<x-index.bulkaction.all />
|
||||
</x-table.th>
|
||||
|
||||
@ -67,7 +67,7 @@
|
||||
<x-table.tbody>
|
||||
@foreach($taxes as $item)
|
||||
<x-table.tr href="{{ route('taxes.edit', $item->id) }}">
|
||||
<x-table.td class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-table.td kind="bulkaction">
|
||||
<x-index.bulkaction.single id="{{ $item->id }}" name="{{ $item->name }}" />
|
||||
</x-table.td>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user