add fields

This commit is contained in:
radhika587
2022-02-21 18:34:04 +05:30
parent 0578122fc3
commit 439fc4e002
6 changed files with 57 additions and 16 deletions

View File

@ -54,7 +54,7 @@
"
>
<p class="mb-3">
Copyright @ {{ documentTitle }}, Inc.
{{ documentTitle }}, Inc.
{{ new Date().getFullYear() }}
</p>
</div>
@ -161,11 +161,10 @@ const pageDescription = computed(() => {
})
const documentTitle = computed(() => {
if (window.admin_document_title) {
return window.admin_document_title
if (window.copyright_text) {
return window.copyright_text
}
return 'Crater Invoice'
return 'Copyright @ Crater Invoice'
})
const loginPageLogo = computed(() => {

View File

@ -3,7 +3,20 @@
<head>
<meta charset="utf-8">
<title>Crater - Self Hosted Invoicing Platform</title>
@if (Route::currentRouteName() === 'admin')
@if(isset($admin_page_title) && $admin_page_title != null)
<title>{{$admin_page_title}}</title>
@else
<title>Crater - Self Hosted Invoicing Platform</title>
@endif
@endif
@if (Route::currentRouteName() === 'customer.login')
@if(isset($customer_page_title) && $customer_page_title != null)
<title>{{$customer_page_title}}</title>
@else
<title>Crater - Self Hosted Invoicing Platform</title>
@endif
@endif
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicons/favicon-32x32.png">
@ -57,12 +70,13 @@
window.login_page_description = "{{$login_page_description}}"
@endif
@if(isset($admin_document_title))
@endif
@if(isset($copyright_text))
window.admin_document_title = "{{$admin_document_title}}"
window.copyright_text = "{{$copyright_text}}"
@endif
@endif
window.Crater.start()
</script>
</body>