@extends('layouts.public-document') @section('title', ($creditNoteTitle ?? 'Credit Note') . ' ' . $creditNote->credit_note_number) @section('content') @php $documentCopyLabel = $documentCopyLabel ?? ($documentCopies['original'] ?? 'Original Copy'); $creditNoteTitle = $creditNoteTitle ?? \App\Helpers\CreditNoteDocumentSettings::title($company->id ?? null); @endphp
@if($logoSrc ?? null) @endif {{ $company->name }}
@if($company->phone || $company->email) Contact {{ $company->name }} @endif Client name: {{ $creditNote->customer->name }}
Credit Note # {{ $creditNote->credit_note_number }}
Date {{ $creditNote->credit_note_date?->format('d - M - Y') ?? '—' }}
Credits Available ₹ {{ number_format($creditNote->credits_available, 2) }}
@include('admin.credit-notes.partials._document', [ 'creditNoteTitle' => $creditNoteTitle, 'documentCopyLabel' => $documentCopyLabel, 'layout' => 'a4', 'forPublic' => true, 'logoSrc' => $logoSrc, 'signatureSrc' => $signatureSrc, ])
@endsection @push('styles') @endpush