28 lines
1.2 KiB
PHP
Raw Normal View History

<x-show.accordion type="create">
<x-slot name="head">
2022-09-07 16:52:10 +03:00
@php
2022-09-07 17:21:05 +03:00
$created_date = '<span class="font-medium">' . company_date($transaction->created_at) . '</span>';
2022-09-07 16:52:10 +03:00
$description = trans('transactions.slider.create', ['user' => $transaction->owner->name, 'date' => $created_date]);
if ($transaction->isRecurringTransaction()) {
$description = trans('transactions.slider.create_recurring', ['user' => $transaction->owner->name, 'date' => $created_date]);
}
@endphp
<x-show.accordion.head
title="{{ trans('general.create') }}"
2022-09-07 16:52:10 +03:00
:description="$description"
/>
</x-slot>
2022-06-01 10:15:55 +03:00
2022-09-07 16:52:10 +03:00
<x-slot name="body">
@if ($transaction->isNotTransferTransaction())
<div class="flex my-3 space-x-2 rtl:space-x-reverse">
<x-link href="{{ route($routeButtonEdit, [$transaction->id, 'type' => $transaction->type]) }}" id="show-slider-actions-edit-{{ $transaction->type }}" class="px-3 py-1.5 mb-3 sm:mb-0 bg-gray-100 hover:bg-gray-200 rounded-xl text-purple text-xs font-bold leading-6">
{{ trans('general.edit') }}
</x-link>
</div>
@endif
2022-09-07 16:52:10 +03:00
</x-slot>
</x-show.accordion>