Merge pull request #2877 from novag/title-subheading

bind title and subheading to the respective document
This commit is contained in:
Cüneyt Şentürk
2023-08-14 15:13:42 +03:00
committed by GitHub
7 changed files with 114 additions and 45 deletions

View File

@ -8,25 +8,10 @@
<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>
@if (! $hideLogo)
<x-form.input.hidden name="company_logo" data-field="setting" />
<x-form.group.file name="company_logo" label="{{ trans('settings.company.logo') }}" :value="setting('company.logo')" not-required data-field="setting" />
@endif
</div>
<div class="sm:col-span-2 relative">

View File

@ -22,6 +22,28 @@
<div class="sm:col-span-1"></div>
<div class="sm:col-span-4 grid sm:grid-cols-4 gap-x-8 gap-y-6">
@stack('title_start')
@if (! $hideDocumentTitle)
<x-form.group.text
name="title"
label="{{ trans('settings.invoice.title') }}"
value="{{ $title }}"
not-required
form-group-class="sm:col-span-2" />
@endif
@stack('subheading_start')
@if (! $hideDocumentSubheading)
<x-form.group.text
name="subheading"
label="{{ trans('settings.invoice.subheading') }}"
value="{{ $subheading }}"
not-required
form-group-class="sm:col-span-2" />
@endif
@stack('issue_start')
@if (! $hideIssuedAt)