$fpdf->SetFont('Times', 'B', 12); $fpdf->text(40, 40, $department); $fpdf->SetFont('Times', '', 10); $dilgnapolcom = "DILG-NAPOLCOM Center, EDSA cor. Quezon Avenue, Quezon City"; $fpdf->text(53, 45, $dilgnapolcom); $website = "www.dilg.gov.ph"; $fpdf->text(89, 50, $website); //office $fpdf->SetFont('Times', '', 12); $office = strtolower($applicationForm->position) == "governor" ? "OFFICE OF THE SECRETARY" : "OFFICE OF THE UNDERSECRETARY FOR LOCAL GOVERNMENT"; $left = strtolower($applicationForm->position) == "governor" ? 71 : 38; $fpdf->text(83, 80, "AUTHORIZATION"); //barcode $fpdf->SetFont('Times', 'B', 12); $barcodedateofapproval = date("mdY", strtotime($applicationForm->dateapproved)); $barcodeHeading = App\viewStrategy::getRegionCode($applicationForm->region) . "_" . $barcodedateofapproval . "_" . $applicationForm->id; $fpdf->text(120, 70, $barcodeHeading); //date of approval $fpdf->SetFont('Times', '', 12); $dateofapproval = date("F d, Y", strtotime($applicationForm->dateapproved)); //heading //name $fpdf->SetFont('Times', 'B', 12); $middleInitial = count($applicationForm->middlename) > 0 ? substr($applicationForm->middlename, 0, 1) . "." : ""; $name = $applicationForm->firstname . " " . $middleInitial . " " . $applicationForm->lastname . " " . $applicationForm->suffix; $hon = "HON. "; //position $fpdf->SetFont('Times', 'B', 12); $position = $applicationForm->position; //municipal $fpdf->SetFont('Times', '', 12);
<fieldset> {!! csrf_field() !!} <div class="form-top"> <div class="form-top-left"> <h3>Action</h3> <p>{{$department}}</p> </div> <div class="form-top-right"> <i class="fa fa-user"></i> </div> </div> <div class="form-bottom pure-g"> <?php if (Auth::user()->accountType_id != 1) { echo App\viewStrategy::getApproveActions(Auth::user()->department_id, $applicationForm, "edit", Auth::user()->accountType_id); } else { echo App\viewStrategy::getApproveActions(Auth::user()->department_id, $applicationForm, "edit"); } ?> <button type="button" class="btn btn-previous">Previous</button> </div> </fieldset> </form> </div> </div> @stop
<input required class = "pure-input-1-3" id="productname" name = "productName" type="text" placeholder="product name" value = '{{$product->productName}}'> </div> <div class="pure-control-group"> <label for="password">Product description:</label> <textarea required name = 'productDesc' cols='50' rows='4'>{{$product->productDesc}}</textarea> </div> <div class="pure-control-group"> <label for="name">Selling price: ₱</label> <input required class = "pure-input-1-3" id="productname" name = "sellingprice" type="number" min="1" step="any" placeholder="selling price" value = '{{$product->sellingprice}}'> </div> <div class="pure-control-group"> <label for="name">Number of stocks: ₱</label> <input required class = "pure-input-1-3" name = "numberOfStocks" type="number" min = "1" placeholder="quantity" value = '{{$inventory->quantity}}'> </div> <div class="pure-control-group"> <label for="name">Category</label> <select name = 'category'> <?php echo App\viewStrategy::optionCategories(); ?> </select> </div> <div class="pure-controls"> <button name = 'save' type="submit" class="pure-button pure-button-primary">Save</button> </div> </fieldset> </form> @stop
<td>{{$travelApplications[$i]->travelType}}</td> <td>{{$travelApplications[$i]->position}}</td> <td><?php $datetime1 = new DateTime($travelApplications[$i]->flightinfo_datefrom); $datetime2 = new DateTime($travelApplications[$i]->flightinfo_dateto); $interval = $datetime1->diff($datetime2); $days = $interval->d > 1 ? "days" : "day"; echo $interval->format('%a') . " " . $days; ?> </td> <td>{{$travelApplications[$i]->created_at}}</td> <td>{{$travelApplications[$i]->dateapproved}}</td> <td style="white-space:nowrap" class = "no-print"> <?php echo App\viewStrategy::TravelListAction($department, $travelApplications[$i]); ?> <form action = 'printcertificate/{{$travelApplications[$i]->id}}' method = 'post'> {!! csrf_field() !!} <input type = 'submit' name = 'btnViewCertificate' value = 'View Travel Authority' /> </form> </td> @if($travelApplications[$i]->applicationstatuscode() != "APPROVED") <script> function saveRemarks{!! $travelApplications[$i]->id !!}(){ var token = document.getElementsByName('_token').value; $.ajax({ type: 'GET', headers: {'X-CSRF-TOKEN': token},
'/> <?php echo Auth::user()->municipality; } else { ?> <select id = 'municipality' class = "pure-u-11-24" required name = 'municipality' id = 'selectMunicipality'> <?php //if lgu if (Auth::user()->department_id == 1) { App\viewStrategy::getMunicipalitiessOptions(Auth::user()->province); //elseif dilg ro } else { if (Auth::user()->department_id == 3) { App\viewStrategy::getMunicipalitiessOptions2(); } } } ?> </select> </div> <div class="form-group pure-u-1 pure-u-md-1-3"> <label for="lastname" class= "mylabel">Last name:</label> <input onkeypress = "return validate(event)" class = "pure-u-11-24" autocomplete="off" required id="lastname" name = "lastname" type="text" > </div> <div class="form-group pure-u-1 pure-u-md-1-3"> <label for="firstname" class= "mylabel">First name:</label> <input onkeypress = "return validate(event)" class = "pure-u-11-24" autocomplete="off" required id="firstname" name = "firstname" type="text"> </div>