coding style

This commit is contained in:
Ludovic CANDELLIER
2023-09-13 22:53:37 +02:00
parent da48f41ec0
commit 5f215cef81
52 changed files with 122 additions and 129 deletions

View File

@@ -2,12 +2,9 @@
namespace App\Http\Controllers\Shop;
use App\Models\Shop\Invoice;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Repositories\Shop\Invoices;
use App\Repositories\Core\PDF;
use App\Repositories\Shop\Invoices;
class InvoiceController extends Controller
{
@@ -19,6 +16,7 @@ class InvoiceController extends Controller
public function show($uuid)
{
$data = Invoices::getByUUID($uuid);
return view('Shop.Invoices.show', $data);
}
@@ -26,8 +24,9 @@ class InvoiceController extends Controller
{
\Debugbar::disable();
$data['invoice'] = Invoices::getByUUID($uuid);
$filename = 'invoice-' . $uuid . '.pdf';
$filename = 'invoice-'.$uuid.'.pdf';
$html = view('Shop.Invoices.pdf', $data)->toHtml();
// $html = '<h1>Hello world!</h1>';
// return PDF::convertHTML($html);
// return view('Shop.Invoices.pdf', $data);