@php // ✅ جلب بيانات الشركة من السجل الوحيد id=1 $company = \Illuminate\Support\Facades\DB::table('company_settings')->where('id', 1)->first(); $businessName = trim((string)($company->business_name ?? '')); if ($businessName === '') $businessName = config('app.name', 'Laundry Dashboard'); $logoPath = trim((string)($company->logo_path ?? '')); $logoUrl = $logoPath !== '' ? asset('storage/' . $logoPath) : asset('logo.png'); @endphp {{ $businessName }} - @yield('title', 'تسجيل الدخول')
{{ $businessName }}
@yield('subtitle', 'تسجيل الدخول')
{{-- رسائل عامة --}} @if(session('error'))
{{ session('error') }}
@endif @if(session('ok'))
{{ session('ok') }}
@endif @if (session('status'))
{{ session('status') }}
@endif @if ($errors->any()) @php // رسالة لطيفة بدل النص الافتراضي $msg = $errors->first(); // أشهر رسالة عند فشل تسجيل الدخول في Laravel if (str_contains($msg, 'These credentials do not match our records') || str_contains($msg, 'بيانات الاعتماد')) { $msg = 'البريد الإلكتروني أو كلمة المرور غير صحيحة.'; } @endphp
{{ $msg }}
@endif {{-- محتوى الصفحة --}} @yield('content')