@php use App\Models\Setting; $companyName = Setting::get('company_name', config('app.name')); $companyAddress = Setting::get('address') ?: Setting::get('company_address', ''); $phone1 = Setting::get('phone_one') ?: Setting::get('phone1') ?: Setting::get('phone'); $phone2 = Setting::get('phone_two') ?: Setting::get('phone2') ?: ''; $email = Setting::get('email') ?: Setting::get('mail'); // Load logo from public/images using stored filename $logoFilename = Setting::get('logo') ?: Setting::get('company_logo') ?: Setting::get('site_logo'); $logoUrl = $logoFilename ? asset('images/' . ltrim($logoFilename, '/')) : ''; @endphp Profit Slip - #{{ $profit->id }}
@if($logoUrl) Logo @else

{{ $companyName }}

@endif

{{ $companyName }}

{{ $companyAddress }}
Phone: {{ $phone1 }} {{ $phone2 ? ' / ' . $phone2 : '' }}
Email: {{ $email }}
Investor
{{ $profit->user->name ?? ($profit->invest->user->name ?? 'N/A') }}
{{ $profit->user->phone ?? ($profit->invest->user->phone ?? '') }}
Slip #
#PROFIT-{{ $profit->id }}
Date
{{ $profit->date ?? $profit->created_at->toDateString() }}
Description Value
Investment Amount {{ $profit->invest ? number_format($profit->invest->amount, 2) : 'N/A' }}
Paid Amount {{ number_format($profit->paid, 2) }}
Remark {{ $profit->remark ?? '-' }}