Multi line text in modalDescription

hi, i have a modal with this code
->modalDescription(fn (Repair $record) => __('customer.quote_description',['quote' => $record->calculateQuote($record).app(InvoiceSettings::class)->currency. ($record->customer->customer_type == 'Business' ? __('invoice.vat') : ''), 'item' => $record->item->name, 'brand' => $record->brand->name, 'model' => $record->item->model, 'serial_number' => $record->serial_number, 'repair_note' => $record->repair_note, 'diagnosis' => $record->diagnosis]))
->modalDescription(fn (Repair $record) => __('customer.quote_description',['quote' => $record->calculateQuote($record).app(InvoiceSettings::class)->currency. ($record->customer->customer_type == 'Business' ? __('invoice.vat') : ''), 'item' => $record->item->name, 'brand' => $record->brand->name, 'model' => $record->item->model, 'serial_number' => $record->serial_number, 'repair_note' => $record->repair_note, 'diagnosis' => $record->diagnosis]))
it works but i need repair_note and diagnosis in new lines. is it possible? html tags are not converted.
2 Replies
LeandroFerreira
LeandroFerreira2mo ago
->modalDescription(fn(Repair $record) => new HtmlString('<div>...</div>')) I think you can also use a view ->modalDescription(view('custom-view'))
<div>
<p>{{ $getRecord()->xxx }}</p>
</div>
<div>
<p>{{ $getRecord()->xxx }}</p>
</div>
Soundmit
Soundmit2mo ago
uhm, thanks i definetly look in