Merge pull request #2619 from brkcvn/code-clean
HTML structures development
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<x-table>
|
||||
<x-table.thead>
|
||||
<x-table.tr class="flex items-center px-1">
|
||||
<x-table.tr>
|
||||
@if (! $hideBulkAction)
|
||||
<x-table.th class="{{ $classBulkAction }}" override="class">
|
||||
<x-index.bulkaction.all />
|
||||
@ -96,7 +96,7 @@
|
||||
<x-table.td class="{{ $classDueAtAndIssueAt }}">
|
||||
@stack('due_at_td_start')
|
||||
@if (! $hideDueAt)
|
||||
<x-slot name="first" class="font-bold truncate" override="class">
|
||||
<x-slot name="first" class="font-bold" override="class">
|
||||
@stack('due_at_td_inside_start')
|
||||
<x-date :date="$item->due_at" function="diffForHumans" />
|
||||
@stack('due_at_td_inside_end')
|
||||
@ -142,7 +142,7 @@
|
||||
|
||||
@stack('document_number_td_start')
|
||||
@if (! $hideDocumentNumber)
|
||||
<x-slot name="second" class="w-20 font-normal group" data-tooltip-target="tooltip-information-{{ $item->id }}" data-tooltip-placement="left" override="class">
|
||||
<x-slot name="second" class="w-20 group" data-tooltip-target="tooltip-information-{{ $item->id }}" data-tooltip-placement="left" override="class">
|
||||
@stack('document_number_td_inside_start')
|
||||
<span class="border-black border-b border-dashed">
|
||||
{{ $item->document_number }}
|
||||
|
@ -17,9 +17,9 @@
|
||||
</div>
|
||||
|
||||
@if (! $hideShow)
|
||||
<a href="{{ route($showRoute, $document->contact_id) }}" class="font-medium border-b border-black">
|
||||
<x-link href="{{ route($showRoute, $document->contact_id) }}" class="font-medium border-b border-black" override="class">
|
||||
{{ $document->contact_name }}
|
||||
</a>
|
||||
</x-link>
|
||||
@else
|
||||
<div class="font-medium border-b border-black">
|
||||
{{ $document->contact_name }}
|
||||
@ -76,9 +76,9 @@
|
||||
@if ($document->items->count() > 2)
|
||||
<li class="ml-10 mb-10">
|
||||
@if (! $hideShow)
|
||||
<a href="{{ route($showDocumentRoute, $document->id) }}" class="border-b">
|
||||
<x-link href="{{ route($showDocumentRoute, $document->id) }}" class="border-b" override="class">
|
||||
{{ trans('documents.invoice_detail.more_item', ['count' => $document->items->count() - 2]) }}
|
||||
</a>
|
||||
</x-link>
|
||||
@else
|
||||
<div class="border-b">
|
||||
{{ trans('documents.invoice_detail.more_item', ['count' => $document->items->count() - 2]) }}
|
||||
|
@ -1,8 +1,8 @@
|
||||
<x-table>
|
||||
<x-table.thead>
|
||||
<x-table.tr class="flex items-center px-1">
|
||||
<x-table.tr>
|
||||
@if (! $hideBulkAction)
|
||||
<x-table.th class="{{ $classBulkAction }}" override="class">
|
||||
<x-table.th class="{{ $classBulkAction }}" hidden-mobile override="class">
|
||||
<x-index.bulkaction.all />
|
||||
</x-table.th>
|
||||
@endif
|
||||
@ -16,7 +16,7 @@
|
||||
</x-slot>
|
||||
</x-table.th>
|
||||
|
||||
<x-table.th class="w-2/12 ltr:pr-6 rtl:pl-6 py-3 ltr:text-left rtl:text-right text-xs font-medium text-black tracking-wider hidden sm:table-cell">
|
||||
<x-table.th class="w-2/12 ltr:pr-6 rtl:pl-6 py-3 ltr:text-left rtl:text-right text-xs font-medium text-black tracking-wider" hidden-mobile>
|
||||
<x-sortablelink column="category.name" title="{{ trans_choice('general.categories', 1) }}" />
|
||||
</x-table.th>
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
<x-sortablelink column="recurring.status" title="{{ trans_choice('general.statuses', 1) }}" />
|
||||
</x-table.th>
|
||||
|
||||
<x-table.th class="w-2/12 hidden sm:table-cell">
|
||||
<x-table.th class="w-2/12" hidden-mobile>
|
||||
<x-slot name="first">
|
||||
{{ trans('recurring.frequency') }}
|
||||
</x-slot>
|
||||
@ -43,7 +43,7 @@
|
||||
@foreach($documents as $item)
|
||||
<x-table.tr href="{{ route($showRoute, $item->id) }}">
|
||||
@if (! $hideBulkAction)
|
||||
<x-table.td class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" override="class">
|
||||
<x-table.td class="ltr:pr-6 rtl:pl-6 hidden sm:table-cell" hidden-mobile override="class">
|
||||
<x-index.bulkaction.single id="{{ $item->id }}" name="{{ $item->contact->name }}" />
|
||||
</x-table.td>
|
||||
@endif
|
||||
@ -59,7 +59,7 @@
|
||||
</x-slot>
|
||||
</x-table.td>
|
||||
|
||||
<x-table.td class="w-2/12 hidden sm:table-cell">
|
||||
<x-table.td class="w-2/12" hidden-mobile>
|
||||
<div class="flex items-center">
|
||||
<x-index.category :model="$item->category" />
|
||||
</div>
|
||||
@ -69,7 +69,7 @@
|
||||
<x-index.status status="{{ $item->recurring->status }}" background-color="bg-{{ $item->recurring_status_label }}" text-color="text-text-{{ $item->recurring_status_label }}" />
|
||||
</x-table.td>
|
||||
|
||||
<x-table.td class="w-2/12 hidden sm:table-cell">
|
||||
<x-table.td class="w-2/12" hidden-mobile>
|
||||
<x-slot name="first">
|
||||
{{ trans('recurring.' . $item->recurring->frequency) }}
|
||||
</x-slot>
|
||||
|
Reference in New Issue
Block a user