<?php
namespace App\Http\Controllers;
use App\Models\Quotation;
use App\Services\QuotationPdfService;
class QuotationDocumentController extends Controller {
    public function document(Quotation $quotation, QuotationPdfService $pdf) {
        return response($pdf->html($quotation))
            ->header('Content-Type', 'text/html; charset=UTF-8')
            ->header('Content-Disposition', 'inline; filename="quotation-'.$quotation->quote_no.'.html"');
    }
}
