mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-19 20:44:01 +00:00
29 lines
480 B
PHP
29 lines
480 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
|
|
class preformaClass
|
|
{
|
|
|
|
public function execute(){
|
|
$user = User::fetch();
|
|
$company = $user->company();
|
|
$price = $company->price();
|
|
$order = Order::fetch();
|
|
$items = $order->items();
|
|
|
|
$deliveryAddress = address();
|
|
|
|
$invoice = Performa::create([
|
|
$order,
|
|
$items
|
|
]);
|
|
|
|
$convertToPdf = $invoice->pdf();
|
|
|
|
$email = email()->pdf();
|
|
|
|
}
|
|
|
|
} |