<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use Artesaos\SEOTools\Facades\SEOTools;
use Artesaos\SEOTools\Facades\SEOMeta;
class AdmissionController extends Controller
{
    public function admissionPolicies(){
        $title = 'Admission Policies | Polytechnic College of Davao del Sur';
        $description = isset(settings()->site_meta_description) ? settings()->site_meta_description : '';
        $imgURL = isset(settings()->site_logo) ? asset('/images/site/'.settings()->site_logo) : '';
        $keywords = isset(settings()->site_meta_keywords) ? settings()->site_meta_keywords : '';
        $currentUrl = url()->current();
        /** Meta SEO*/
        SEOTools::setTitle($title, false);
        SEOTools::setDescription($description);
        SEOMeta::setKeywords($keywords);
        /** Open Graph*/
        SEOTools::opengraph()->setUrl($currentUrl);
        SEOTools::opengraph()->addImage($imgURL);
        SEOTools::opengraph()->addProperty('type', 'articles');
    
        SEOTools::twitter()->addImage($imgURL);
        SEOTools::twitter()->setUrl($currentUrl);
        SEOTools::twitter()->setSite('@larablog');

        $data=[
            'pageTitle' => $title
        ];

        return view('front.pages.admission.admission-policies', $data);

    }
    public function admissionRequirements(){
        $title = 'Admission Requirements | Polytechnic College of Davao del Sur';
        $description = isset(settings()->site_meta_description) ? settings()->site_meta_description : '';
        $imgURL = isset(settings()->site_logo) ? asset('/images/site/'.settings()->site_logo) : '';
        $keywords = isset(settings()->site_meta_keywords) ? settings()->site_meta_keywords : '';
        $currentUrl = url()->current();
        /** Meta SEO*/
        SEOTools::setTitle($title, false);
        SEOTools::setDescription($description);
        SEOMeta::setKeywords($keywords);
        /** Open Graph*/
        SEOTools::opengraph()->setUrl($currentUrl);
        SEOTools::opengraph()->addImage($imgURL);
        SEOTools::opengraph()->addProperty('type', 'articles');
        
        SEOTools::twitter()->addImage($imgURL);
        SEOTools::twitter()->setUrl($currentUrl);
        SEOTools::twitter()->setSite('@larablog');

        $data=[
            'pageTitle' => $title
        ];

        return view('front.pages.admission.admission-requirements', $data);

    }
    public function admissionProcedure() {
        $title = 'Admission Procedure | Polytechnic College of Davao del Sur';
        $description = settings()->site_meta_description ?? '';
        $imgURL = settings()->site_logo ? asset('/images/site/'.settings()->site_logo) : '';
        $keywords = settings()->site_meta_keywords ?? '';
        $currentUrl = url()->current();
    
        // SEO
        SEOTools::setTitle($title, false);
        SEOTools::setDescription($description);
        SEOMeta::setKeywords($keywords);
        SEOTools::opengraph()->setUrl($currentUrl);
        SEOTools::opengraph()->addImage($imgURL);
        SEOTools::opengraph()->addProperty('type', 'articles');
        SEOTools::twitter()->addImage($imgURL);
        SEOTools::twitter()->setUrl($currentUrl);
        SEOTools::twitter()->setSite('@larablog');
    
        // Actual step data
        $steps = [
            'First Step' => 'Step 1: Approach the Registrar Office to get a Pre-enrollment Form and fill up according to the details.',
            'Second Step' => 'Step 2: After filling up the Pre-enrollment Form, look for the Program Head according to the program-degree enrolled and take a validation to approve and signed.',
            'Third Step' => 'Step 3: Go to the Registrar’s Office to submit the Pre-enrollment Form to get the Enrollment Form (The blue one), fill up according to its details',
            'Fourth Step' => 'Step 4: After filling up the Enrollment form, prepare the entrance fee payment and approach the Cashier’s Priority Number attendant and get a Priority Number',
            'Fifth Step' => 'Step 5: If the priority number called, approach to the cashier and submit the Enrollment Form including the Entrance fee payment.',
            'Sixth Step' => 'Step 6: Wait for a while and wait for your family name to be called.',
            'Seventh Step' => 'Step 7:After the Cashier gives the receipt, assessment and the pre-enrollment form, Approach the Registrar’s Office and submit the Pre-enrollment form validate and get a stamp enrolled.',
            'Eighth Step' => 'Step 8: After getting the stamp, Approach the Enrollment Encoder Section to encode the courses and finalized your Enrollment',
        ];
    
        return view('front.pages.admission.admission-procedures', compact('title', 'steps'));
    }
    
    
}
