installed chinese fonts

This commit is contained in:
Edmond Teh
2020-09-10 00:32:23 +08:00
parent 4f313b9e72
commit d69e3384ff
11 changed files with 191218 additions and 35 deletions
Binary file not shown.
+14 -19
View File
@@ -453,33 +453,28 @@ class InvoiceController extends Controller
$booking = Booking::where('id', $id)->first();
$invoice = Invoice::where('booking_id', $booking['id'])->first();
$lines = InvoiceDetails::where('invoice_id', $invoice->id)->get();
$supplierbooking = SupplierBooking::where('booking_id', $id)->first();
$supplier = SettingSupplier::where('id', $supplierbooking->supplier_id)->first();
$data = [
'title' => 'Delivery Order',
'buyer' => [
'buyer_company' => 'CIEF Worldwide Sdn Bhd',
'reg_no' => '',
'address' => 'Malaysia Global Innovation & Creativity Centre, Level
1 CWS, Block 3730, Persiaran APEC 63000
Cyberjaya.',
'gst' => '',
'phone' => '018 2909252'
'title' => 'DO',
'detail' => [
'date' => Carbon::createFromFormat('Y-m-d H:i:s', $booking->created_at)->format('d-m-Y'),
'ei' => '',
'edo' => 'EDO-202009-000001',
'ref' => $booking->id
],
'seller' => [
'seller_company' => $supplier->company_name,
'address' => '',
'phone' => '',
'date' => '',
'po_number' => $invoice->po_number,
'order_number' => $booking->order_no
'billto' => [
'buyer_company' => $invoice->buyer_company,
'reg_no' => $invoice->reg_no,
'address' => $invoice->address,
'gst' => '',
'phone' => $invoice->contact_no,
'marking_no' => ''
],
'lines' => $lines,
'amount' => $invoice->amount
];
$pdf = PDF::loadView('pdf/po', $data);
$pdf = PDF::loadView('pdf/invoice', $data);
// Send
return $pdf->download('do.pdf');
+1
View File
@@ -15,6 +15,7 @@
"laravel/tinker": "~1.0",
"laravelcollective/html": "^5.6",
"maatwebsite/excel": "^3.1",
"mpdf/mpdf": "^8.0",
"pusher/pusher-php-server": "~3.0",
"tymon/jwt-auth": "^1.0.0-rc.2",
"zizaco/entrust": "dev-master"
+2 -2
View File
@@ -4,7 +4,7 @@
<title>Document</title>
<style>
body {
font-family: simhei;
font-family: Droidsans;
}
.clear-fix::after {
content: "";
@@ -33,7 +33,7 @@
}
.details {
position: absolute;
left: 78%;
left: 76%;
top: -20px;
}
.title {
+2 -1
View File
@@ -5,7 +5,8 @@
<title>document</title>
<style>
body {
font-family: simhei, sans-serif;
font-family: sans-serif;
font-size: 16px;
}
.details {
float: right;
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+19 -1
View File
@@ -88,5 +88,23 @@
'bold' => $fontDir . 'simhei',
'bold_italic' => $fontDir . 'simhei',
'italic' => $fontDir . 'simhei'
)
),
'droidsans' => array(
'normal' => $fontDir . '/DroidSansFallback',
'bold' => $fontDir . '/DroidSansFallback',
'italic' => $fontDir . '/DroidSansFallback',
'bold_italic' => $fontDir . '/DroidSansFallback',
),
'droidsansfallback' => array(
'normal' => $fontDir . '/DroidSansFallback',
'bold' => $fontDir . '/DroidSansFallback',
'italic' => $fontDir . '/DroidSansFallback',
'bold_italic' => $fontDir . '/DroidSansFallback',
),
'noto' => array(
'normal' => $fontDir . '/NotoSerifSC-Regular',
'bold' => $fontDir . '/NotoSerifSC-Regular',
'italic' => $fontDir . '/NotoSerifSC-Regular',
'bold_italic' => $fontDir . '/NotoSerifSC-Regular',
),
) ?>