@inject('request', 'Illuminate\Http\Request') @php $app_login_logo = \App\System::getProperty('app_login_logo'); $login_business = \App\Business::whereNotNull('logo')->where('logo', '!=', '')->latest('updated_at')->first(); $login_business_for_name = $login_business ?: \App\Business::latest('updated_at')->first(); $login_logo_file = !empty($app_login_logo) ? $app_login_logo : ($login_business->logo ?? null); $login_logo_path = !empty($login_logo_file) ? public_path('uploads/business_logos/' . $login_logo_file) : null; $current_host = request()->getSchemeAndHttpHost(); if (!empty($login_logo_path) && file_exists($login_logo_path)) { $login_logo = $current_host . '/uploads/business_logos/' . rawurlencode($login_logo_file) . '?v=' . filemtime($login_logo_path); } elseif (file_exists(public_path('uploads/cms/logo.png'))) { $login_logo = $current_host . '/uploads/cms/logo.png?v=' . filemtime(public_path('uploads/cms/logo.png')); } elseif (file_exists(public_path('uploads/logo.png'))) { $login_logo = $current_host . '/uploads/logo.png?v=' . filemtime(public_path('uploads/logo.png')); } else { $login_logo = asset('img/logo-small.png'); } $login_brand_name = !empty($login_business_for_name->name) ? $login_business_for_name->name : config('app.name', 'POS'); @endphp
{{ $login_brand_name }}
@if(config('constants.SHOW_REPAIR_STATUS_LOGIN_SCREEN') && Route::has('repair-status')) @lang('repair::lang.repair_status') @endif @if(Route::has('member_scanner')) @lang('gym::lang.gym_member_profile') @endif
@if (!($request->segment(1) == 'business' && $request->segment(2) == 'register') && $request->segment(1) != 'login') {{ __('business.sign_in') }} @endif
@if (!($request->segment(1) == 'business' && $request->segment(2) == 'register')) @if (config('constants.allow_registration')) {{ __('business.register') }} @if (Route::has('pricing') && config('app.env') != 'demo' && $request->segment(1) != 'pricing') @lang('superadmin::lang.pricing') @endif @endif @endif
@include('layouts.partials.language_btn')