@extends('layouts.admin') @section('title', 'Receipt ' . $receipt->receipt_number) @section('page-title', 'Payment Receipt') @section('breadcrumbs') Receipts chevron_right {{ $receipt->receipt_number }} @endsection @section('header-actions')
arrow_back Back
@endsection @section('content') @php $tplQuery = http_build_query(array_filter(['template' => $templateKey])); $downloadBranded = route('admin.receipts.download', $receipt).'?'.$tplQuery; $downloadSimple = route('admin.receipts.download', $receipt).'?simple=1'; $printUrl = route('admin.receipts.print', $receipt).'?'.$tplQuery; @endphp

{{ $receipt->receipt_number }}

{{ $receipt->created_at->format('M d, Y') }} @if($receipt->invoice) · Invoice {{ $receipt->invoice->invoice_number }} @endif

@if(isset($whatsappConfig) && $whatsappConfig && $whatsappConfig->is_active) @endif print Print download PDF description
@if(isset($templateView) && view()->exists($templateView)) @php $templateContent = view($templateView, ['payment' => $payment])->render(); preg_match_all('/]*>(.*?)<\/style>/is', $templateContent, $styleMatches); $styles = !empty($styleMatches[1]) ? '' : ''; $bodyContent = $templateContent; if (preg_match('/]*>(.*?)<\/body>/is', $templateContent, $bodyMatches)) { $bodyContent = $bodyMatches[1]; } $bodyContent = preg_replace('/]*>(.*?)<\/script>/is', '', $bodyContent); @endphp {!! $styles !!}
{!! $bodyContent !!}
@else
Template not found.
@endif
{{-- Email --}} {{-- WhatsApp: public link --}} @if(isset($whatsappConfig) && $whatsappConfig && $whatsappConfig->is_active) @endif @push('scripts') @endpush @endsection