th and td classnames edited for bulkaction

This commit is contained in:
Burak Civan 2022-08-09 15:40:22 +03:00
parent 9572cf5df6
commit 04f75754f4
15 changed files with 31 additions and 25 deletions

View File

@ -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;

View File

@ -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;
}

View File

@ -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 }}"

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>