added document show new stack

This commit is contained in:
Cihan Şentürk 2025-01-10 12:58:13 +03:00 committed by GitHub
parent 1a6696b520
commit af67d9462c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 80 additions and 0 deletions

View File

@ -9,6 +9,8 @@
</x-slot>
<x-slot name="body">
@stack('timeline_attachment_body_start')
@foreach ($attachment as $file)
<x-media.file :file="$file" />
@endforeach
@ -28,6 +30,8 @@
<x-media.file :file="$file" />
@endforeach
@endif
@stack('timeline_attachment_body_end')
</x-slot>
</x-show.accordion>
@endif

View File

@ -10,6 +10,8 @@
</x-slot>
<x-slot name="body" class="block" override="class">
@stack('timeline_children_body_start')
@if ($document->children()->count())
@foreach ($document->children()->get() as $child)
@php
@ -23,5 +25,7 @@
@else
{{ trans('general.none') }}
@endif
@stack('timeline_children_body_end')
</x-slot>
</x-show.accordion>

View File

@ -11,7 +11,11 @@
</x-slot>
<x-slot name="body">
@stack('timeline_create_body_start')
<div class="flex">
@stack('timeline_create_body_button_edit_start')
@if (! $hideEdit)
@can($permissionUpdate)
@if ($document->status != 'cancelled')
@ -25,6 +29,10 @@
@endif
@endcan
@endif
@stack('timeline_create_body_button_edit_end')
</div>
@stack('timeline_create_body_end')
</x-slot>
</x-show.accordion>

View File

@ -7,6 +7,8 @@
</x-slot>
<x-slot name="body" class="block" override="class">
@stack('timeline_get_paid_body_start')
<div class="flex flex-wrap space-x-3 rtl:space-x-reverse">
@stack('timeline_get_paid_body_button_payment_start')
@ -55,13 +57,21 @@
</x-link.hover>
</x-link>
@endif
@stack('timeline_get_paid_body_button_accept_payment_end')
</div>
@stack('timeline_get_paid_body_button_end')
@stack('timeline_get_paid_body_detail_start')
<div class="text-xs mt-6" style="margin-left: 0 !important;">
<span class="font-medium">
{{ trans('invoices.payments_received') }}:
</span>
@stack('timeline_get_paid_body_detail_description_start')
@if ($transactions->count())
@foreach ($transactions as $transaction)
<div class="my-4">
@ -142,6 +152,10 @@
<span>{{ trans('general.no_records') }}</span>
</div>
@endif
@stack('timeline_get_paid_body_detail_description_end')
</div>
@stack('timeline_get_paid_body_end')
</x-slot>
</x-show.accordion>

View File

@ -7,6 +7,8 @@
</x-slot>
<x-slot name="body" class="block" override="class">
@stack('timeline_make_payment_body_start')
<div class="flex flex-wrap space-x-3 rtl:space-x-reverse">
@stack('timeline_get_paid_body_button_payment_start')
@ -40,11 +42,15 @@
@stack('timeline_get_paid_body_button_payment_end')
</div>
@stack('timeline_make_payment_body_detail_start')
<div class="text-xs mt-6" style="margin-left: 0 !important;">
<span class="font-medium">
{{ trans('bills.payment_made') }} :
</span>
@stack('timeline_make_payment_body_detail_description_start')
@if ($transactions->count())
@foreach ($transactions as $transaction)
<div class="my-4">
@ -125,6 +131,10 @@
<span>{{ trans('general.no_records') }}</span>
</div>
@endif
@stack('timeline_make_payment_body_detail_description_end')
</div>
@stack('timeline_make_payment_body_end')
</x-slot>
</x-show.accordion>

View File

@ -11,7 +11,11 @@
</x-slot>
<x-slot name="body">
@stack('timeline_receive_body_start')
<div class="flex flex-wrap space-x-3 rtl:space-x-reverse">
@stack('timeline_receive_body_button_mark_received_start')
@if (! $hideMarkReceived)
@can($permissionUpdate)
@if ($document->status == 'draft')
@ -27,6 +31,10 @@
@endif
@endcan
@endif
@stack('timeline_receive_body_button_mark_received_end')
</div>
@stack('timeline_receive_body_end')
</x-slot>
</x-show.accordion>

View File

@ -11,10 +11,18 @@
</x-slot>
<x-slot name="body">
@stack('timeline_restore_body_start')
<div class="flex">
@stack('timeline_restore_body_button_restore_start')
<x-link href="{{ route($restoreRoute, $document->id) }}" id="show-slider-actions-restore-{{ $document->type }}" @click="e => e.target.classList.add('disabled')">
{{ trans('general.restore') }}
</x-link>
@stack('timeline_restore_body_button_restore_end')
</div>
@stack('timeline_restore_body_end')
</x-slot>
</x-show.accordion>

View File

@ -7,7 +7,11 @@
</x-slot>
<x-slot name="body" class="block" override="class">
@stack('timeline_schedule_body_start')
<div class="flex my-3 space-x-2 rtl:space-x-reverse">
@stack('timeline_schedule_body_description_start')
@if ($document->recurring && ($next = $document->recurring->getNextRecurring()))
{{ trans('recurring.next_date', ['date' => $next->format(company_date_format())]) }}
<br>
@ -23,6 +27,10 @@
@else
{{ trans('documents.statuses.ended') }}
@endif
@stack('timeline_schedule_body_description_end')
</div>
@stack('timeline_schedule_body_end')
</x-slot>
</x-show.accordion>

View File

@ -11,7 +11,11 @@
</x-slot>
<x-slot name="body">
@stack('timeline_send_body_start')
<div class="flex flex-wrap space-x-3 rtl:space-x-reverse">
@stack('timeline_send_body_button_email_start')
@if (! $hideEmail)
@if ($document->contact->has_email)
@if ($document->status != 'cancelled')
@ -32,6 +36,8 @@
@endif
@endif
@stack('timeline_send_body_button_mark_sent_start')
@if (! $hideMarkSent)
@can($permissionUpdate)
@if ($document->status == 'draft')
@ -48,6 +54,8 @@
@endcan
@endif
@stack('timeline_send_body_button_cancelled_start')
@if (! $hideShare)
@if ($document->status != 'cancelled')
<x-button id="show-slider-actions-share-link-{{ $document->type }}" @click="onShareLink('{{ route($shareRoute, $document->id) }}')">
@ -56,6 +64,10 @@
@endif
@endif
@stack('timeline_send_body_button_cancelled_end')
@stack('timeline_send_body_history_start')
@if ($histories->count())
<div class="text-xs mt-6" style="margin-left: 0 !important;">
<span class="font-medium">
@ -75,6 +87,10 @@
@endforeach
</div>
@endif
@stack('timeline_send_body_history_end')
</div>
@stack('timeline_get_paid_body_end')
</x-slot>
</x-show.accordion>