@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 Invest Slip - #{{ $invest->id }}
@if($logoUrl) Logo @else

{{ $companyName }}

@endif

{{ $companyName }}

{{ $companyAddress }}
Phone: {{ $phone1 }} {{ $phone2 ? ' / ' . $phone2 : '' }}
Email: {{ $email }}
Investor
{{ $invest->user->name ?? 'N/A' }}
{{ $invest->user->phone ?? '' }}
Slip #
#INVEST-{{ $invest->id }}
Invest Date
{{ \Illuminate\Support\Carbon::parse($invest->invest_date)->format('Y-m-d') }}
Description Value
Investment Amount {{ number_format($invest->amount, 2) }}
Percent per month {{ $invest->percent }}%
Duration {{ $invest->months }} months
Total Expected Profit {{ number_format($invest->total_profit, 2) }}
Profit Received {{ number_format($invest->profit_received, 2) }}
Due Profit {{ number_format($invest->due_profit, 2) }}