-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
company.blade.php
57 lines (52 loc) · 2.6 KB
/
company.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<x-form.accordion type="company" :open="(! $hideLogo && empty(setting('company.logo')))">
<x-slot name="head">
<x-form.accordion.head
title="{{ trans_choice($textSectionCompaniesTitle, 1) }}"
description="{{ trans($textSectionCompaniesDescription) }}"
/>
</x-slot>
<x-slot name="body">
<div class="sm:col-span-2">
<div class="relative sm:col-span-6 grid gap-x-8 gap-y-6">
@if (! $hideDocumentTitle)
<x-form.group.text name="title" label="{{ trans('settings.invoice.title') }}" value="{{ $titleSetting }}" not-required data-field="setting" form-group-class="sm:col-span-6" />
@endif
@if (! $hideDocumentSubheading)
<x-form.group.text name="subheading" label="{{ trans('settings.invoice.subheading') }}" value="{{ $subheadingSetting }}" not-required data-field="setting" form-group-class="sm:col-span-6" />
@endif
</div>
</div>
<div class="sm:col-span-1"></div>
<div class="sm:col-span-2">
<div class="relative sm:col-span-6 grid gap-x-8 gap-y-6">
@if (! $hideLogo)
<x-form.group.file name="company_logo" label="{{ trans('settings.company.logo') }}" :value="setting('company.logo')" not-required data-field="setting" form-group-class="sm:col-span-6" />
@endif
</div>
</div>
<div class="sm:col-span-2 relative">
@if (! $hideCompanyEdit)
<akaunting-company-edit
company-id="{{ company_id() }}"
button-text="{{ trans('settings.company.edit_your_business_address') }}"
tax-number-text="{{ trans('general.tax_number') }}"
:company="{{ json_encode($company) }}"
:company-form="{{ json_encode([
'show' => true,
'text' => trans('settings.company.edit_your_business_address'),
'buttons' => [
'cancel' => [
'text' => trans('general.cancel'),
'class' => 'btn-outline-secondary'
],
'confirm' => [
'text' => trans('general.save'),
'class' => 'disabled:bg-green-100'
]
]
])}}"
></akaunting-company-edit>
@endif
</div>
</x-slot>
</x-form.accordion>