pdf logo missing fixes
This commit is contained in:
parent
3d03cc25a1
commit
0672738b83
@ -128,7 +128,7 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<?php if($data['view'] == false){ ?>
|
||||
<?php if($data['view'] == false){ ?>
|
||||
|
||||
<!-- Define header -->
|
||||
<htmlpageheader name="myHeader">
|
||||
@ -173,6 +173,15 @@
|
||||
<table class="invoice-content-table" >
|
||||
<tr class="invoice-section">
|
||||
<td class="quotation-company">
|
||||
<?php if (isset($data['logo']) && $data['view'] != false):
|
||||
$logoFilename = basename($data['logo']);
|
||||
$logo = base_url("assets/images/logo/" . $logoFilename);
|
||||
if ($logo):
|
||||
?>
|
||||
<div class="org-logo" style="width: 120px;">
|
||||
<img src="<?= $logo ?>" alt="Logo" style="max-height: 80px; max-width: 100%; height: auto;" />
|
||||
</div>
|
||||
<?php endif; endif; ?>
|
||||
<div>
|
||||
<span class="user-name"><?= esc($data['user_data']['first_name']) ?> <?= esc($data['user_data']['last_name']) ?> <?php if($data['user_data']['employee_code']){ echo '- '.$data['user_data']['employee_code']; } ?> </span>
|
||||
</div>
|
||||
@ -191,7 +200,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left; border-bottom:1px solid #ddd; border-right:1px solid #ddd;">Expiry Date</td>
|
||||
<td style="text-align:left; border-bottom:1px solid #ddd; color:#6b6b6b;"><?= $data['user_data']['date_of_expiry'] ? date('d, M Y', strtotime($data['user_data']['date_of_expiry'])) : '' ?></td>
|
||||
<td style="text-align:left; border-bottom:1px solid #ddd; color:#6b6b6b;"><?= $data['user_data']['date_of_expiry'] ? date('d, M y', strtotime($data['user_data']['date_of_expiry'])) : '' ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:left; border-bottom:1px solid #ddd; border-right:1px solid #ddd;">Place Of Issue</td>
|
||||
@ -283,11 +292,11 @@
|
||||
</td>
|
||||
<td class="quo-heading1">
|
||||
<div class="qsub-heading" style="color: #6b7577; margin-bottom: 5px;">Requested Date </div>
|
||||
<div class="qsub-desc"><?= date('d, M Y', strtotime($data['created_on'])) ?></div>
|
||||
<div class="qsub-desc"><?= date('d, M y', strtotime($data['created_on'])) ?></div>
|
||||
</td>
|
||||
<td class="quo-heading1">
|
||||
<div class="qsub-heading" style="color: #6b7577; margin-bottom: 5px;">Trip Start Date </div>
|
||||
<div class="qsub-desc"><?= ($data['trip_start_date'] == '9999-12-31') ? '-' : date('d, M Y', strtotime($data['trip_start_date'])) ?></div>
|
||||
<div class="qsub-desc"><?= ($data['trip_start_date'] == '9999-12-31') ? '-' : date('d, M y', strtotime($data['trip_start_date'])) ?></div>
|
||||
</td>
|
||||
<td class="quo-heading1">
|
||||
<div class="qsub-heading" style="color: #6b7577; margin-bottom: 5px;">Current Status</div>
|
||||
@ -349,7 +358,7 @@
|
||||
</td>
|
||||
<td class="quo-heading1">
|
||||
<div class="qsub-heading" style="color: #6b7577; margin-bottom: 5px;">Date</div>
|
||||
<div class="qsub-desc"><?= date('d, M Y', strtotime($tripsvalue['date'])) ?> </div>
|
||||
<div class="qsub-desc"><?= date('d, M y', strtotime($tripsvalue['date'])) ?> </div>
|
||||
</td>
|
||||
<td class="quo-heading1">
|
||||
<div class="qsub-heading" style="color: #6b7577; margin-bottom: 5px;">Time</div>
|
||||
@ -392,7 +401,7 @@
|
||||
</td>
|
||||
<td class="quo-heading1">
|
||||
<div class="qsub-heading" style="color: #6b7577; margin-bottom: 5px;">Date</div>
|
||||
<div class="qsub-desc"><?= date('d, M Y', strtotime($trainvalue['date'])) ?> </div>
|
||||
<div class="qsub-desc"><?= date('d, M y', strtotime($trainvalue['date'])) ?> </div>
|
||||
</td>
|
||||
<td class="quo-heading1">
|
||||
<div class="qsub-heading" style="color: #6b7577; margin-bottom: 5px;">Time</div>
|
||||
@ -431,7 +440,7 @@
|
||||
</td>
|
||||
<td class="quo-heading1">
|
||||
<div class="qsub-heading" style="color: #6b7577; margin-bottom: 5px;">Date</div>
|
||||
<div class="qsub-desc"><?= date('d, M Y', strtotime($busvalue['date'])) ?> </div>
|
||||
<div class="qsub-desc"><?= date('d, M y', strtotime($busvalue['date'])) ?> </div>
|
||||
</td>
|
||||
<td class="quo-heading1">
|
||||
<div class="qsub-heading" style="color: #6b7577; margin-bottom: 5px;">Time</div>
|
||||
@ -468,7 +477,7 @@
|
||||
</td>
|
||||
<td class="quo-heading1">
|
||||
<div class="qsub-heading" style="color: #6b7577; margin-bottom: 5px;">Date</div>
|
||||
<div class="qsub-desc"><?= date('d, M Y', strtotime($taxivalue['date'])) ?> </div>
|
||||
<div class="qsub-desc"><?= date('d, M y', strtotime($taxivalue['date'])) ?> </div>
|
||||
</td>
|
||||
<td class="quo-heading1">
|
||||
<div class="qsub-heading" style="color: #6b7577; margin-bottom: 5px;">Time</div>
|
||||
@ -515,11 +524,11 @@
|
||||
</td>
|
||||
<td class="quo-heading1">
|
||||
<div class="qsub-heading" style="color: #6b7577; margin-bottom: 5px;">Checkin Date & Time</div>
|
||||
<div class="qsub-desc"><?= date('d, M Y', strtotime($accomodationvalue['checkin_date'])) ?> <?= date('h:i A', strtotime($accomodationvalue['checkin_time'])) ?> </div>
|
||||
<div class="qsub-desc"><?= date('d, M y', strtotime($accomodationvalue['checkin_date'])) ?> <?= date('h:i A', strtotime($accomodationvalue['checkin_time'])) ?> </div>
|
||||
</td>
|
||||
<td class="quo-heading1">
|
||||
<div class="qsub-heading" style="color: #6b7577; margin-bottom: 5px;">Checkout Date & Time</div>
|
||||
<div class="qsub-desc"><?= date('d, M Y', strtotime($accomodationvalue['checkout_date'])) ?> <?= date('h:i A', strtotime($accomodationvalue['checkout_time'])) ?> </div>
|
||||
<div class="qsub-desc"><?= date('d, M y', strtotime($accomodationvalue['checkout_date'])) ?> <?= date('h:i A', strtotime($accomodationvalue['checkout_time'])) ?> </div>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
@ -589,11 +598,11 @@
|
||||
</td>
|
||||
<td class="quo-heading1">
|
||||
<div class="qsub-heading" style="color: #6b7577; margin-bottom: 5px;">Start Date</div>
|
||||
<div class="qsub-desc"><?= date('d, M Y', strtotime($insurancevalue['start_date'])) ?> </div>
|
||||
<div class="qsub-desc"><?= date('d, M y', strtotime($insurancevalue['start_date'])) ?> </div>
|
||||
</td>
|
||||
<td class="quo-heading1">
|
||||
<div class="qsub-heading" style="color: #6b7577; margin-bottom: 5px;">End Date</div>
|
||||
<div class="qsub-desc"><?= date('d, M Y', strtotime($insurancevalue['end_date'])) ?> </div>
|
||||
<div class="qsub-desc"><?= date('d, M y', strtotime($insurancevalue['end_date'])) ?> </div>
|
||||
</td>
|
||||
<td class="quo-heading1">
|
||||
<div class="qsub-heading" style="color: #6b7577; margin-bottom: 5px;">Comments</div>
|
||||
@ -626,7 +635,7 @@
|
||||
</td>
|
||||
<td class="quo-heading1">
|
||||
<div class="qsub-heading" style="color: #6b7577; margin-bottom: 5px;">Start Date</div>
|
||||
<div class="qsub-desc"><?= date('d, M Y', strtotime($visavalue['start_date'])) ?> </div>
|
||||
<div class="qsub-desc"><?= date('d, M y', strtotime($visavalue['start_date'])) ?> </div>
|
||||
</td>
|
||||
<td class="quo-heading1">
|
||||
<div class="qsub-heading" style="color: #6b7577; margin-bottom: 5px;">Comments</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user