akaunting 3.0 (the last dance)
This commit is contained in:
27
resources/views/modals/transactions/connect.blade.php
Normal file
27
resources/views/modals/transactions/connect.blade.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<x-form id="form-transaction" :route="$route" :model="!empty($transaction) ? $transaction : false">
|
||||
<base-alert type="warning" v-if="typeof form.response !== 'undefined' && form.response.error" v-html="form.response.message"></base-alert>
|
||||
|
||||
<div class="grid sm:grid-cols-6 gap-x-8 gap-y-6 my-3.5">
|
||||
<x-form.group.date name="paid_at" label="{{ trans('general.date') }}" icon="calendar_today" value="{{ Date::now()->toDateString() }}" show-date-format="{{ company_date_format() }}" date-format="Y-m-d" autocomplete="off" />
|
||||
|
||||
<x-form.group.money name="amount" label="{{ trans('general.amount') }}" value="{{ $document->grand_total }}" autofocus="autofocus" :currency="$currency" dynamicCurrency="currency" />
|
||||
|
||||
<x-form.group.account change="onChangePaymentAccount" />
|
||||
|
||||
<x-form.group.text name="currency" label="{{ trans_choice('general.currencies', 1) }}" value="{{ $document->currency->name }}" not-required disabled />
|
||||
|
||||
<x-form.group.textarea name="description" label="{{ trans('general.description') }}" rows="3" not-required />
|
||||
|
||||
<x-form.group.payment-method />
|
||||
|
||||
<x-form.group.text name="reference" label="{{ trans('general.reference') }}" not-required />
|
||||
|
||||
<x-form.input.hidden name="document_id" :value="$document->id" />
|
||||
<x-form.input.hidden name="category_id" :value="$document->category->id" />
|
||||
<x-form.input.hidden name="amount" :value="$document->grand_total" />
|
||||
<x-form.input.hidden name="currency_code" :value="$document->currency_code" />
|
||||
<x-form.input.hidden name="currency_rate" :value="$document->currency_rate" />
|
||||
<x-form.input.hidden name="number" :value="$number" />
|
||||
<x-form.input.hidden name="type" :value="config('type.document.' . $document->type . '.transaction_type')" />
|
||||
</div>
|
||||
</x-form>
|
||||
15
resources/views/modals/transactions/email.blade.php
Normal file
15
resources/views/modals/transactions/email.blade.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<x-form id="form-email" :route="[$store_route, $transaction->id]">
|
||||
<x-form.section>
|
||||
<x-slot name="body">
|
||||
<x-form.group.text name="to" label="{{ trans('general.to') }}" value="{{ $transaction->contact->email }}" form-group-class="sm:col-span-6" />
|
||||
|
||||
<x-form.group.text name="subject" label="{{ trans('settings.email.templates.subject') }}" value="{{ $notification->getSubject() }}" form-group-class="sm:col-span-6" />
|
||||
|
||||
<x-form.group.editor name="body" label="{{ trans('settings.email.templates.body') }}" :value="$notification->getBody()" rows="5" data-toggle="quill" form-group-class="sm:col-span-6 mb-0" />
|
||||
|
||||
<x-form.group.checkbox name="user_email" :options="['1' => trans('general.email_send_me', ['email' => user()->email])]" />
|
||||
|
||||
<x-form.input.hidden name="transaction_id" :value="$transaction->id" />
|
||||
</x-slot>
|
||||
</x-form.section>
|
||||
</x-form>
|
||||
36
resources/views/modals/transactions/share.blade.php
Normal file
36
resources/views/modals/transactions/share.blade.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<x-form id="form-share">
|
||||
<div class="text-center">
|
||||
<div class="my-3">
|
||||
{{ trans('transactions.share.' . $transaction->type . '.show_link') }} :
|
||||
</div>
|
||||
|
||||
<div class="my-3">
|
||||
<x-form.input.text
|
||||
name="share"
|
||||
value="{{ $signedUrl }}"
|
||||
ref="clone"
|
||||
@click="onCopyLink()"
|
||||
class="bg-gray-100 appearance-none border-2 border-gray-100 rounded w-full py-2 px-4 text-gray-700 leading-tight cursor-pointer focus:outline-none focus:ring-transparent focus:border-transparent"
|
||||
/>
|
||||
<x-form.input.hidden name="hidden-share" value="{{ $signedUrl }}" />
|
||||
|
||||
<div data-copied class="hidden h-10 items-center justify-center">
|
||||
<span
|
||||
class="px-2.5 py-1 ltr:ml-2 rtl:mr-2 text-xs font-medium rounded-xl bg-orange-300 text-orange-700"
|
||||
>
|
||||
{{ trans('general.copied') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="my-3">
|
||||
{{ trans('transactions.share.' . $transaction->type . '.copy_link') }}
|
||||
</div>
|
||||
|
||||
<div class="my-3">
|
||||
<x-link href="{{ $previewUrl }}" class="flex items-center justify-center gap-x-2 text-purple" override="class" target="_blank">
|
||||
{{ trans('general.preview_in_window') }} <x-icon icon="open_in_new" />
|
||||
</x-link>
|
||||
</div>
|
||||
</div>
|
||||
</x-form>
|
||||
Reference in New Issue
Block a user