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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,7 +7,11 @@
</x-slot> </x-slot>
<x-slot name="body" class="block" override="class"> <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"> <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())) @if ($document->recurring && ($next = $document->recurring->getNextRecurring()))
{{ trans('recurring.next_date', ['date' => $next->format(company_date_format())]) }} {{ trans('recurring.next_date', ['date' => $next->format(company_date_format())]) }}
<br> <br>
@ -23,6 +27,10 @@
@else @else
{{ trans('documents.statuses.ended') }} {{ trans('documents.statuses.ended') }}
@endif @endif
@stack('timeline_schedule_body_description_end')
</div> </div>
@stack('timeline_schedule_body_end')
</x-slot> </x-slot>
</x-show.accordion> </x-show.accordion>

View File

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