Some adjustments to show customer's logo.
This commit is contained in:
1
resources/views/components/company-logo.blade.php
Normal file
1
resources/views/components/company-logo.blade.php
Normal file
@@ -0,0 +1 @@
|
||||
<img src="{{ $company_logo->value }}" {{ $attributes }}/>
|
||||
@@ -6,15 +6,12 @@
|
||||
<!-- Logo -->
|
||||
<div class="shrink-0 flex items-center">
|
||||
<a href="{{ route('dashboard') }}">
|
||||
<x-application-logo class="block h-9 w-auto fill-current text-gray-800 dark:text-gray-200"/>
|
||||
<x-company-logo class="block h-9 w-auto fill-current text-gray-800 dark:text-gray-200"/>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- Navigation Links -->
|
||||
<div class="hidden space-x-8 sm:-my-px sm:ms-10 sm:flex">
|
||||
<x-nav-link :href="route('dashboard')" :active="request()->routeIs('dashboard')">
|
||||
{{ __('dashboard.Dashboard') }}
|
||||
</x-nav-link>
|
||||
<x-nav-link :href="route('customer.index')"
|
||||
:active="\Illuminate\Support\Str::startsWith(request()->route()->getName(), 'customer.') || \Illuminate\Support\Str::startsWith(request()->route()->getName(), 'address.')">
|
||||
{{ __('customer.Customers') }}
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
<header>
|
||||
<div>
|
||||
<div class="left header-left">
|
||||
<img class="header-logo" src="{{ $options->company_logo }}" />
|
||||
@php
|
||||
$arr = explode(';base64,', $options->company_logo);
|
||||
$type = substr($arr[0], strpos($arr[0], '/') + 1);
|
||||
@endphp
|
||||
<img class="header-logo" src="{{ base_path('/public/storage/company_logo.' . $type) }}" />
|
||||
</div>
|
||||
<div class="right header-right text-right">
|
||||
<div>{{ $options->company_name }}</div>
|
||||
|
||||
Reference in New Issue
Block a user