This commit is contained in:
Gowtham M 2025-09-20 12:32:00 +05:30
parent daeb8993e3
commit 54b683e879
2 changed files with 23 additions and 18 deletions

View File

@ -1497,13 +1497,13 @@ class PlanController extends ResourceController
public function url()
{
return updatePlanStatus(170,1); die;
// echo '<pre>';
// $user = $this->userModel->where('email', 'pavithrakavi1100@gmail.com')->first();
// echo getUserPlanCreationRestrictionStatus($user); die;
// print_r(getPlanApproverAction(126)); die;
return $this->generatePlanPdf(136, true);
return $this->generatePlanPdf(168, true);
die;
// updatePlanStatus(57); die;

View File

@ -144,9 +144,9 @@
<?php endif; ?>
<?php endif; ?>
</td>
<td class="header-section-text" style="text-align: right; vertical-align: middle;">
<!-- <td class="header-section-text" style="text-align: right; vertical-align: middle;">
Trip ID #<?= $data['plan_id'] ?>
</td>
</td> -->
</tr>
</table>
</div>
@ -170,22 +170,27 @@
<?php } ?>
<?php if (isset($data['logo']) && $data['view'] !== false):$logoFilename = basename($data['logo']);$logo = base_url("assets/images/logo/" . $logoFilename); ?>
<div class="org-logo" style="width: 120px;">
<img src="<?= $logo ?>" alt="Logo" style="max-height: 80px; max-width: 100%; height: auto;" />
</div>
<!-- <div class="header-section-text" style="text-align: right; vertical-align: middle;">
Trip ID #<?= $data['plan_id'] ?>
</div> -->
<?php endif; ?>
<div class="header-section-text" style="text-align: left; vertical-align: middle; margin-top: 20px;">
#<?= $data['plan_id'] ?> - <span class="user-name"> <?= esc($data['trip_title']) ?> </span>
</div>
<!--- user details --->
<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);
?>
<div class="org-logo" style="width: 120px;">
<img src="<?= $logo ?>" alt="Logo" style="max-height: 80px; max-width: 100%; height: auto;" />
</div>
<?php 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>
@ -313,7 +318,7 @@
<table class="invoice-table-design">
<thead>
<tr>
<th class="text-left">Trip title</th>
<!-- <th class="text-left">Trip title</th> -->
<th class="text-left">Cost center</th>
<th class="text-left">Purpose of travel</th>
<?php if($data['functional_department'] == 5){ ?>
@ -326,7 +331,7 @@
</thead>
<tbody>
<tr>
<td class="text-left"><?= esc($data['trip_title']) ?></td>
<!-- <td class="text-left"><?= esc($data['trip_title']) ?></td> -->
<td class="text-left"><?= esc($data['cost_center_value']) ?></td>
<td class="text-left"><?= esc($data['purpose_of_travel_value']) ?></td>
<?php if($data['functional_department'] == 5){ ?>