How to set header text for a view in a custom module.

Hello,

Regarding the code snippets below from a custom module, I can not get my head around this small issue:

The header text for the confirmation view is shown as “texts.confirmation”.
I am wondering how this text is to be set programatically.
Can you help me out.

Best,
Frans.

— EarlController.php —

<?php

namespace Modules\Earl\Http\Controllers;

use Illuminate\Routing\Controller;
use Illuminate\Http\Request;

use DB;

class EarlController extends Controller
{
public function index()
{
return view(‘earl::selectinvoice’);
}

public function show(Request $request)
{
    $invoicenumber = $request-&gt;invoicenumber;
    $invoice = DB::table('invoices')-&gt;where('invoice_number', $invoicenumber)-&gt;first();
    $contact = DB::table('contacts')-&gt;where('client_id', $invoice-&gt;client_id)-&gt;first();
    $invoiceitem = DB::table('invoice_items')-&gt;where('invoice_id', $invoice-&gt;id)-&gt;first();
    
    return view('earl::confirmation', [
        'invoice' =&gt; $invoice,
        'contact' =&gt; $contact,
        'invoiceitem' =&gt; $invoiceitem
    ]);
}

}


— selectinvoice.blade.php —

@extends(‘header’)

@section(‘content’)

<form action=“confirmation”>
Invoice#:<br>
<input type=“text” name=“invoicenumber” value="">
<br>
<input type=“submit” value=“Submit”>
</form>

@stop

— confirmation.blade.php —

@extends(‘header’)

@section(‘content’)
<p>Confirmation</p>
<p>
InvoiceID: {{ $invoice->id }} ContactID: {{ $contact->id }} InvoiceitemID: {{ $invoiceitem->id }} <br>
</p>
… a lot more where this came from …
@stop