Server : nginx/1.18.0 System : Linux localhost 6.14.3-x86_64-linode168 #1 SMP PREEMPT_DYNAMIC Mon Apr 21 19:47:55 EDT 2025 x86_64 User : www-data ( 33) PHP Version : 8.0.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /var/www/ecommerce/app/Http/Controllers/Website/ |
<?php
namespace App\Http\Controllers\Website;
use Illuminate\Http\Request;
use App\Models\Product;
class FrontendController
{
public function index(Request $request)
{
$generalFaqs = [
[
'question' => 'What is EtiqaFinans?',
'answer' => 'EtiqaFinans is a company registered in Nigeria with registration number RC1805281
for the business of trading in goods, real estate, training and consultancy among other
things',
],
[
'question' => 'What are EtiqaFinans mission and vision?',
'answer' => 'EtiqaFinans is a company whose mission is to ensure ease in the acquisition of goods
and properties through the interest-free Buy Now Pay Later (BNPL) and Organized Group
Mutual Ownership.<br/>The company’s vision is to ease the asset acquisition problems in Africa.',
],
[
'question' => 'What are the values of EtiqaFinans?',
'answer' => '<ul>
<li><strong>Justice</strong>: We believe that society needs a fair means of owning household assets and
owning home ownership</li>
<li><strong>Ease</strong>: Real asset acquisition should be a simple real transaction devoid of interest
or extortive fees</li>
<li><strong>Innovative</strong>: We encourage visionary, thoughtful, and social impact ideas.</li>
</ul>',
],
[
'question' => 'What makes EtiqaFinans different?',
'answer' => '<ul>
<li>Real asset transactions</li>
<li>Interest-free Organized Group Mutual Ownership model</li>
<li>Interest-free Buy Now Pay Later (BNPL) model</li>
<li>Shariah compliant nature</li>
</ul>',
],
[
'question' => 'Eligibility to buy from EtiqaFinans?',
'answer' => 'Individuals or groups with a verified regular salary or income inflow.',
],
[
'question' => 'How can I register?',
'answer' => 'You can create an account through the EtiqaFinans WebApp. To create an account with
EtiqaFinans, you will be asked the following information:<br/><ul>
<li>Phone Number</li>
<li>ID (NIN)</li>
<li>Email</li>
</ul><br/>Your created account should be used for all future purchases from EtiqaFinans',
],
[
'question' => 'Can I create more than one EtiqaFinans account?',
'answer' => 'No, you cannot. Each customer must only have one account. Creating a second account
will lead to both accounts being blocked.',
]
];
$vendors = [
[
'title' => 'Mudatex Brothers Limited',
'url' => 'www.mudatex.com',
'image' => 'assets/vendors/Picture1.png',
],
[
'title' => 'Butterfly Mobilya Limited',
'url' => 'www.butterflymobilya.com',
'image' => 'assets/vendors/Picture9.png',
],
[
'title' => 'Tecno',
'url' => 'www.tecno-mobile.com',
'image' => 'assets/vendors/Picture2.png',
],
[
'title' => 'Infinix',
'url' => 'www.infinixmobility.com/ng/',
'image' => 'assets/vendors/Picture3.png',
],
[
'title' => 'Itel',
'url' => 'www.itel-mobile.com/global/',
'image' => 'assets/vendors/Picture4.png',
],
[
'title' => 'Syinix Home Appliances',
'url' => 'www.syinix.com',
'image' => 'assets/vendors/Picture5.png',
],
[
'title' => 'Oraimo Accessories',
'url' => 'www.ng.oraimo.com',
'image' => 'assets/vendors/Picture6.png',
],
[
'title' => 'LG Electronics',
'url' => 'www.lg.com/africa',
'image' => 'assets/vendors/Picture7.png',
],
[
'title' => 'Luminous Inverters',
'url' => 'www.luminousnigeria.com',
'image' => 'assets/vendors/Picture8.png',
],
];
return view('website.home', [
'generalFaqs' => $generalFaqs,
'vendors' => $vendors
]);
}
public function forBusiness(Request $request)
{
return view('website.for_business');
}
public function forTraining(Request $request)
{
$courses = Product::getProductsByCategorySlug('learning');
return view('website.for_training', [
'courses' => $courses
]);
}
public function trainingAndConsultancy(Request $request)
{
return view('website.training_n_consultancy');
}
public function about(Request $request)
{
$vendors = [
[
'title' => 'Mudatex Brothers Limited',
'url' => 'www.mudatex.com',
'image' => 'assets/vendors/Picture1.png',
],
[
'title' => 'Butterfly Mobilya Limited',
'url' => 'www.butterflymobilya.com',
'image' => 'assets/vendors/Picture9.png',
],
[
'title' => 'Tecno',
'url' => 'www.tecno-mobile.com',
'image' => 'assets/vendors/Picture2.png',
],
[
'title' => 'Infinix',
'url' => 'www.infinixmobility.com/ng/',
'image' => 'assets/vendors/Picture3.png',
],
[
'title' => 'Itel',
'url' => 'www.itel-mobile.com/global/',
'image' => 'assets/vendors/Picture4.png',
],
[
'title' => 'Syinix Home Appliances',
'url' => 'www.syinix.com',
'image' => 'assets/vendors/Picture5.png',
],
[
'title' => 'Oraimo Accessories',
'url' => 'www.ng.oraimo.com',
'image' => 'assets/vendors/Picture6.png',
],
[
'title' => 'LG Electronics',
'url' => 'www.lg.com/africa',
'image' => 'assets/vendors/Picture7.png',
],
[
'title' => 'Luminous Inverters',
'url' => 'www.luminousnigeria.com',
'image' => 'assets/vendors/Picture8.png',
],
];
$teams = [
[
'name' => 'Aisha Ahmed',
'position' => 'Co-Founder & CEO',
'image' => 'Aisha Ahmed.jpg',
],
[
'name' => 'Rashed Jahangir',
'position' => 'Co-Founder & COO',
'image' => 'Rashed Jahangir.JPG',
],
[
'name' => "Mardhiyyah Ja'afar",
'position' => 'Company Secretary',
'image' => "Mardhiyyah Ja'afar.jpeg",
],
[
'name' => 'Huzaifa Abubakar Dansabo',
'position' => 'Project Manager',
'image' => 'Huzaifa Abubakar Dansabo.jpg',
],
[
'name' => 'Faruk Chikaji',
'position' => 'Fullstack Developer',
'image' => 'Faruk Chikaji.jpg',
],
[
'name' => 'Saheed Alabi Sulaiman',
'position' => 'Business Operation Manager',
'image' => 'saheed_alabi_sulaiman.jpeg',
],
];
$advisers = [
[
'name' => 'Adviser One',
'position' => 'Adviser 1',
'image' => 'placeholder.jpg',
],
[
'name' => 'Adviser Two',
'position' => 'Adviser 2',
'image' => 'placeholder.jpg',
],
[
'name' => 'Adviser Three',
'position' => 'Adviser 3',
'image' => 'placeholder.jpg',
],
];
return view('website.about', [
'vendors' => $vendors,
'teams' => $teams,
'advisers' => $advisers,
]);
}
public function faq(Request $request)
{
$bnplFaqs = [
[
'question' => 'What is EtiqaFinans “Buy Now Pay Later” model?',
'answer' => 'A mode of payment that allows customers to ‘buy now, pay later’; a customer pays in
installments for a product he buys from us. Purchases are made seamlessly without
interest and additional fees.',
],
[
'question' => 'How it works?',
'answer' => '<ol>
<li>Sign Up</li>
<li>Choose your product</li>
<li>Provide the required information necessary and make four (4) installmental
payments with No interest and No costs</li>
<li>Collect your product immediately after you make the first installmental payment.</li>
</ol>',
],
[
'question' => 'How do I collect my product?',
'answer' => 'After placing an order and your purchase is approved, you can collect your product(s)
at our designated pick-up point close to you.',
],
[
'question' => 'Why was my purchase declined?',
'answer' => 'Your purchase is declined if you do not meet the necessary requirement(s).',
],
[
'question' => 'What makes EtiqaFinans BNPL service Shariah Compliant?',
'answer' => 'EtiqaFinans’s transparent business model! Customers will never be charged interest,
late fees or processing fees ever. What you see is what you pay.',
],
[
'question' => 'Where and how are payments made?',
'answer' => 'All payments are made to EtiqaFinans bank account. No payment is collected in person.',
],
[
'question' => 'How many installments does EtiqaFinans offer?',
'answer' => 'Generally, there are four (4) installments for all products. The price of each product is
equally divided into four (4) installments.',
],
[
'question' => 'Can I change my scheduled payment date?',
'answer' => 'No, customers cannot move the repayment dates for their installments',
],
[
'question' => 'Can I pay less now, and pay more later?',
'answer' => 'The price of the product is equally divided into four (4) installments. You can only
choose to increase the amount for your next installment by adding the installment after
it',
],
[
'question' => 'Can I have more than 4 installments?',
'answer' => 'Currently, EtiqaFinans only allows customers to choose to pay in up to 4 installments.',
],
];
$generalFaqs = [
[
'question' => 'What is EtiqaFinans?',
'answer' => 'EtiqaFinans is a company registered in Nigeria with registration number RC1805281
for the business of trading in goods, real estate, training and consultancy among other
things',
],
[
'question' => 'What are EtiqaFinans mission and vision?',
'answer' => 'EtiqaFinans is a company whose mission is to ensure ease in the acquisition of goods
and properties through the interest-free Buy Now Pay Later (BNPL) and Organized Group
Mutual Ownership.<br/>The company’s vision is to ease the asset acquisition problems in Africa.',
],
[
'question' => 'What are the values of EtiqaFinans?',
'answer' => '<ul>
<li><strong>Justice</strong>: We believe that society needs a fair means of owning household assets and
owning home ownership</li>
<li><strong>Ease</strong>: Real asset acquisition should be a simple real transaction devoid of interest
or extortive fees</li>
<li><strong>Innovative</strong>: We encourage visionary, thoughtful, and social impact ideas.</li>
</ul>',
],
[
'question' => 'What makes EtiqaFinans different?',
'answer' => '<ul>
<li>Real asset transactions</li>
<li>Interest-free Organized Group Mutual Ownership model</li>
<li>Interest-free Buy Now Pay Later (BNPL) model</li>
<li>Shariah compliant nature</li>
</ul>',
],
[
'question' => 'Eligibility to buy from EtiqaFinans?',
'answer' => 'Individuals or groups with a verified regular salary or income inflow.',
],
[
'question' => 'How can I register?',
'answer' => 'You can create an account through the EtiqaFinans WebApp. To create an account with
EtiqaFinans, you will be asked the following information:<br/><ul>
<li>Phone Number</li>
<li>ID (NIN)</li>
<li>Email</li>
</ul><br/>Your created account should be used for all future purchases from EtiqaFinans',
],
[
'question' => 'Can I create more than one EtiqaFinans account?',
'answer' => 'No, you cannot. Each customer must only have one account. Creating a second account
will lead to both accounts being blocked.',
]
];
return view('website.faq', [
'faqs' => array_merge($generalFaqs, $bnplFaqs),
'bnplFaqs' => $bnplFaqs,
'generalFaqs' => $generalFaqs
]);
}
public function joinCareer()
{
return view('website.career-form',[]);
}
}