lundi 12 octobre 2020

How can i get this raw query values in blade templates?

$data = DB::select(DB::raw("SELECT t1.id,t1.clientemail,t1.phone,t1.address,t1.gstno FROM clientmasters t1 INNER JOIN clientbill t2 ON t2.clientid  = t1.id WHERE t1.id= '$clientmastIDD'"));
    $filename="invoice.pdf";
    $mpdf = new \Mpdf\Mpdf();
    $html= '\View'::make('PDF.invoicepdf')->with(['data',$data]);
    $html = $html->render();
    $mpdf->WriteHTML($html);
    $mpdf->Output($filename,'I');

in blade " clientemail ?>" i use this means iam getting error



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire