mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
remove unwanted code
This commit is contained in:
@ -3,57 +3,6 @@
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<!-- @php
|
|
||||||
$routeName = Route::currentRouteName();
|
|
||||||
|
|
||||||
$isAdminPage = false;
|
|
||||||
$isCustomerPage = false;
|
|
||||||
$hasAdminPageTitle = false;
|
|
||||||
$hasCustomerPageTitle = false;
|
|
||||||
|
|
||||||
switch ($routeName) {
|
|
||||||
case 'admin.dashboard':
|
|
||||||
$isAdminPage = true;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'home':
|
|
||||||
$isAdminPage = true;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'login':
|
|
||||||
$isAdminPage = true;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'reset-password':
|
|
||||||
$isAdminPage = true;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'forgot-password':
|
|
||||||
$isAdminPage = true;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'customer.dashboard':
|
|
||||||
$isCustomerPage = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($admin_page_title) && $admin_page_title != null) {
|
|
||||||
$hasAdminPageTitle = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(isset($customer_page_title) && $customer_page_title != null) {
|
|
||||||
$hasCustomerPageTitle = true;
|
|
||||||
}
|
|
||||||
@endphp -->
|
|
||||||
|
|
||||||
<!-- @if ($isAdminPage && $hasAdminPageTitle)
|
|
||||||
<title>Admin Page</title>
|
|
||||||
@elseif ($isCustomerPage && $hasCustomerPageTitle)
|
|
||||||
<title>Customer Page</title>
|
|
||||||
@else
|
|
||||||
<title>Crater - Self Hosted Invoicing Platform</title>
|
|
||||||
@endif -->
|
|
||||||
|
|
||||||
<title>{{ get_page_title(!Request::header('company')) }}</title>
|
<title>{{ get_page_title(!Request::header('company')) }}</title>
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<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="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png">
|
||||||
|
|||||||
Reference in New Issue
Block a user