CHANGE_job_card_template_aligment:ss
This commit is contained in:
parent
9937a4f5c1
commit
573fe1de87
@ -140,9 +140,8 @@ $routes->get('dashboard', 'Users::dashboard');
|
|||||||
|
|
||||||
// Model //
|
// Model //
|
||||||
$routes->get('bike_model_index/(:any)', 'Model::index/$1');
|
$routes->get('bike_model_index/(:any)', 'Model::index/$1');
|
||||||
$routes->post('create_model', 'Model::create_model');
|
$routes->post('create_model/(:any)', 'Model::create_model/(:any)');
|
||||||
$routes->get('delete_model/(:any)', 'Model::delete_model/$1');
|
$routes->get('delete_model/(:any)', 'Model::delete_model/$1');
|
||||||
// $routes->post('create_model/(:any)', 'Model::create_model/$1');
|
|
||||||
$routes->post('status_model', 'Model::status_model');
|
$routes->post('status_model', 'Model::status_model');
|
||||||
// Model End's//
|
// Model End's//
|
||||||
|
|
||||||
|
|||||||
@ -152,7 +152,7 @@ class Jobcard extends BaseController
|
|||||||
|
|
||||||
// Generate the PDF content (HTML) with data
|
// Generate the PDF content (HTML) with data
|
||||||
$html = view('invoice_pdf_template_jobcard', $data);
|
$html = view('invoice_pdf_template_jobcard', $data);
|
||||||
// echo $html;die;
|
echo $html;die;
|
||||||
// Load HTML into the mPDF instance
|
// Load HTML into the mPDF instance
|
||||||
$mpdf->WriteHTML($html);
|
$mpdf->WriteHTML($html);
|
||||||
|
|
||||||
|
|||||||
@ -59,7 +59,7 @@ class Model extends BaseController
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function create_model()
|
public function create_model($model_id)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$make_id = $this->request->getPost('make_id');
|
$make_id = $this->request->getPost('make_id');
|
||||||
@ -71,7 +71,7 @@ class Model extends BaseController
|
|||||||
'model_name' => $model_name
|
'model_name' => $model_name
|
||||||
];
|
];
|
||||||
|
|
||||||
// if (!$model_id) {
|
if (!$model_id) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$inserted = $BikemodelsModel->insert($data);
|
$inserted = $BikemodelsModel->insert($data);
|
||||||
@ -88,17 +88,17 @@ class Model extends BaseController
|
|||||||
$result = "No Match's";
|
$result = "No Match's";
|
||||||
return $this->respond(['status' => 'failed','code' => 404,'data' => $result],404);
|
return $this->respond(['status' => 'failed','code' => 404,'data' => $result],404);
|
||||||
}
|
}
|
||||||
// }
|
}
|
||||||
// else{
|
else{
|
||||||
// $updated = $BikemodelsModel->update($model_id ,$data);
|
$updated = $BikemodelsModel->update($model_id ,$data);
|
||||||
// if ($updated) {
|
if ($updated) {
|
||||||
// $result = $data;
|
$result = $data;
|
||||||
// return $this->respond(['status' => 'success','code' => 200,'data' => $result],200);
|
return $this->respond(['status' => 'success','code' => 200,'data' => $result],200);
|
||||||
// } else {
|
} else {
|
||||||
// $result = "No Match's";
|
$result = "No Match's";
|
||||||
// return $this->respond(['status' => 'failed','code' => 404,'data' => $result],404);
|
return $this->respond(['status' => 'failed','code' => 404,'data' => $result],404);
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
} catch (\Exception $exception) {
|
} catch (\Exception $exception) {
|
||||||
return $this->respond(['status' => 'failed','code' => 500,'data' => $exception],500);
|
return $this->respond(['status' => 'failed','code' => 500,'data' => $exception],500);
|
||||||
|
|||||||
@ -61,7 +61,7 @@
|
|||||||
table.invoice-info-table th,
|
table.invoice-info-table th,
|
||||||
table.invoice-info-table td {
|
table.invoice-info-table td {
|
||||||
border: 1px solid;
|
border: 1px solid;
|
||||||
text-align: right;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Style for the addresses table */
|
/* Style for the addresses table */
|
||||||
@ -190,11 +190,11 @@ p {
|
|||||||
<td><?= $vehicle[0]['reg_no'] ?></td>
|
<td><?= $vehicle[0]['reg_no'] ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Contact Number</td>
|
<td>Contact No</td>
|
||||||
<td><?= $vehicle[0]['mobile_no'] ?></td>
|
<td><?= $vehicle[0]['mobile_no'] ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Job Card Number</td>
|
<td>Job Card No</td>
|
||||||
<td><?= $vehicle[0]['order_number'] ?></td>
|
<td><?= $vehicle[0]['order_number'] ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user