@if (app()->getLocale() == 'ar') @include('assets._language_ar') @else @include('assets._language_en') @endif LexPro | {{ \Illuminate\Support\Str::title($model) }} @include('assets._meta_tags') @include('assets._misc') @include('assets._data_table_styles') @if (app()->getLocale() == 'ar') @include('assets._ar_fonts') @include('assets._main_styles_RTL') @else @include('assets._en_fonts') @include('assets._main_styles_LTR') @endif @include('assets.dark_mode')
@if($model == 'expense')

{{ __('general.'.$model.'#') }} {{$finance->number}}
{{ __('general.client') }} : {{$finance->client_name}}

@else

{{$model}}# {{$finance->number}}
{{ __('general.to') }} : {{$finance->client_name}}

@if(app(App\Services\setting\CompanyProfileService::class)->get()->logo) @php $logoPath = app()->environment('production') ? asset(app(App\Services\setting\CompanyProfileService::class)->get()->logo) : asset('storage/' . app(App\Services\setting\CompanyProfileService::class)->get()->logo); @endphp profile picture @endif
{{ app(App\Services\setting\CompanyProfileService::class)->get()->name }} {{ app(App\Services\setting\CompanyProfileService::class)->get()->slogan }}
{{ app(App\Services\setting\CompanyProfileService::class)->get()->email }} - {{ app(App\Services\setting\CompanyProfileService::class)->get()->phone }}
@endif
{{ __('general.serial') }} #{{$finance->number}}
{{ __('general.date') }} {{$finance->date}}
@if($finance->due_date)
{{ __('general.due_date') }} {{$finance->due_date}}
@elseif($model == 'pyment')
{{ __('general.subject') }} {{$finance->subject}}
@endif
{{ __('general.currency') }} {{$finance->currency}}
@if($model != 'expense')
{{ __('general.issue_for') }} @if(!empty($finance->client?->name)) {{ $finance->client->name }} @endif @if(!empty($finance->client?->email)) - {{ $finance->client->email }}
@endif @if(!empty($finance->client?->tax_number)) {{ __('general.tax_number') }} : {{ $finance->client->tax_number }} @endif
{{ __('general.client_address') }} @if(!empty($finance->billing_address)) {{ $finance->billing_address }}
@endif @if(!empty($finance->client?->address?->country)) {{ $finance->client->address->country }}-{{ $finance->client->address->city }} @endif
@endif @if($model != 'pyment')
@foreach($modelItems as $item) @endforeach
{{ __('general.item') }} {{ __('general.quantity') }} {{ __('general.price') }} {{ __('general.special_tax') }} {{ __('general.total') }}

{{$item->name}}

{{$item->description}}

{{$item->qty}} {{$item->amount}} {{$finance->currency}} {{$item->tax}} % {{$item->subtotal}} {{$finance->currency}}
{{--
{{ __('general.adjustment') }}
{{$finance->adjustment}} {{$finance->currency}}
--}}
{{ __('general.subtotal') }}
{{$finance->subtotal}} {{$finance->currency}}
{{ __('general.tax') }} @if($finance->tax > 0){{$finance->tax}}% @endif
{{$finance->overall_tax_value}} {{$finance->currency}}
@if($finance->discount_amount_type == 'percentage')
{{ __('general.discount') }} {{$finance->discount}}%
{{$finance->total_discount}} {{$finance->currency}}
@elseif($finance->discount_amount_type == 'fixed_amount')
{{ __('general.discount') }}
{{$finance->total_discount}} {{$finance->currency}}
@else
{{ __('general.discount') }} {{$finance->discount}}%
{{$finance->total_discount}} {{$finance->currency}}
@endif
{{ __('general.total') }}
{{$finance->total}} {{$finance->currency}}
@elseif($model == 'pyment')
{{ __('general.payment_mode') }} {{ __('general.total') }} {{ __('general.currency') }} {{ __('general.total') }}

{{$finance->payment_mode}} - {{$finance->payment_method}}

{{$finance->transaction_number}}

{{$finance->total}} {{$finance->currency}} {{$finance->total}}
@endif
@php $profile = app(App\Services\setting\CompanyProfileService::class)->get(); function joinIfNotEmpty(...$parts) { return collect($parts)->filter()->implode(' - '); } @endphp @if($model != 'expense')
@if(!empty($profile->name))

{{ $profile->name }}

@endif
@php $line1 = joinIfNotEmpty($profile->slogan, __('general.tax_number') . ' : ' . $profile->taxNumber, $profile->registrationNumber); $line2 = joinIfNotEmpty($profile->address, $profile->website); $line3 = joinIfNotEmpty($profile->email, $profile->phone, $profile->phone2); @endphp @if($line1)

{{ $line1 }}

@endif @if($line2)

{{ $line2 }}

@endif @if($line3)

{{ $line3 }}

@endif
@php $bankAccounts = joinIfNotEmpty($profile->bankAccount, $profile->bankAccount2); $supportLine = joinIfNotEmpty(__('general.for_support') . ' : ' . $profile->supportEmail, $profile->supportPhone); @endphp @if($bankAccounts)

{{ __('general.bank_accounts') }} : {{ $bankAccounts }}

@endif @if($supportLine)

{{ $supportLine }}

@endif
@endif
{{-- Automatically triggers the print dialog when the page loads --}} @include('assets._main_scripts')