@extends('layouts.print') @section('title', 'طباعة فاتورة ' . $invoice->id . ' - '.config('app.name')) @section('company_name', $company?->name ?? config('app.name')) @section('company_tax', ($company && $company->tax_number) ? 'الرقم الضريبي: ' . $company->tax_number : 'الرقم الضريبي: —') @section('company_logo') @if($company && $company->logo_url) @if(str_starts_with($company->logo_url, 'company/')) Logo @else Logo @endif @elseif(file_exists(public_path('images/logo.png'))) Logo @endif @endsection @section('stamp') @if($invoice->payment_method === 'cash') @endif @endsection @section('doc_type', 'فاتورة مبيعات') @section('document_meta') @if($invoice->reference) @endif @endsection @section('document_table') @foreach($invoice->items as $idx => $line) @endforeach @endsection @section('document_footer') @if(!empty(trim($invoice->terms ?? ''))) @endif @endsection