Files
new_raffles/resources/views/client/raffles/pages/resources-template.blade.php
Subash afc7c61f86 Refactor course finder and resources templates for improved readability and functionality
- Updated course finder form to use HTML helper methods for cleaner syntax.
- Enhanced form structure with better class management and attributes.
- Implemented AJAX pagination for course listings to improve user experience.
- Cleaned up resource template code for consistency and readability.
- Ensured proper indentation and spacing for better maintainability.
- Added missing target="_blank" attribute for external links in resource documents.
2025-08-03 18:01:22 +05:45

341 lines
20 KiB
PHP

@extends('client.raffles.layouts.app')
@section('content')
<div class="about-banner">
</div>
<section class="container py-30 free-resources">
<div class="w-100percent mx-auto">
<h2 class="md:text-30 text-60 text-sec text-center">Free-Resources</h2>
<div class="title-line mx-auto"></div>
</div>
<section class="free-resources-content tab-container">
<div class="row">
<div class="col col-md-3">
<ul class="first-row tab-buttons ">
<li class=" px-20 tab-btn cursor-pointer show fade active rounded-10" role="tabpanel">
<div class="accordion " id="accordion-questions" role="tablist" aria-multiselectable="true">
<div class="accordion-item panel mb-10">
<div class="accordion-heading" role="tab" id="heading-question-1">
<h4 class="accordion-title">
<a class="collapsed text-17 font-bold flex gap-10 items-center" role="button"
data-bs-toggle="collapse" data-bs-parent="#accordion-questions"
href="index.php#collapse-question-item-1" aria-expanded="false"
aria-controls="collapse-question-item-1">
<img class="w-40" src="{{ asset('raffles/assets/images/icons/one.svg') }}"
alt="">
<h5 class="text-16 p-0 m-0">Countries</h5>
</a>
</h4>
</div>
<div id="collapse-question-item-1" class="accordion-collapse collapse active show"
data-bs-parent="#accordion-questions" role="tabpanel"
aria-labelledby="heading-question-1">
@foreach ($countries as $country)
<div class="accordion-content text-16 leading-20 text-black bg-white px-10 flex items-center gap-10"
onclick="showTab('tab{{ $country->title }}')">
<i class="fa-solid fa-angles-right text-18 text-brand"></i>
<p>{{ $country->title }}</p>
</div>
@endforeach
</div>
</div>
</div>
</li>
<li class=" px-20 tab-btn cursor-pointer rounded-10 fade " role="tabpanel">
<div class="accordion " id="accordion-questions" role="tablist" aria-multiselectable="true">
<div class="accordion-item panel mb-10">
<div class="accordion-heading" role="tab" id="heading-question-2">
<h4 class="accordion-title">
<a class="collapsed text-17 font-bold flex gap-10 items-center" role="button"
data-bs-toggle="collapse" data-bs-parent="#accordion-questions"
href="index.php#collapse-question-item-2" aria-expanded="false"
aria-controls="collapse-question-item-2">
<img class="w-40" src="{{ asset('raffles/assets/images/icons/two.svg') }}"
alt="">
<h5 class="text-16 p-0 m-0">Language Test</h5>
</a>
</h4>
</div>
<div id="collapse-question-item-2" class="accordion-collapse collapse "
data-bs-parent="#accordion-questions" role="tabpanel"
aria-labelledby="heading-question-2">
@foreach ($tests as $test)
<div class="accordion-content text-16 leading-20 text-black bg-white px-10 flex items-center gap-10"
onclick="showTab('tab{{ $test->title }}')">
<i class="fa-solid fa-angles-right text-18 text-brand"></i>
<p>{{ $test->title }}</p>
</div>
@endforeach
</div>
</div>
</li>
<li class=" px-20 tab-btn cursor-pointer rounded-10 fade " role="tabpanel">
<div class="accordion " id="accordion-questions" role="tablist" aria-multiselectable="true">
<div class="accordion-item panel mb-10">
<div class="accordion-heading" role="tab" id="heading-question-3">
<h4 class="accordion-title">
<a class="collapsed text-17 font-bold flex gap-10 items-center" role="button"
data-bs-toggle="collapse" data-bs-parent="#accordion-questions"
href="index.php#collapse-question-item-3" aria-expanded="false"
aria-controls="collapse-question-item-3">
<img class="w-40"
src="{{ asset('raffles/assets/images/icons/three.svg') }}"
alt="">
<h5 class="text-16 p-0 m-0">Support Services</h5>
</a>
</h4>
</div>
<div id="collapse-question-item-3" class="accordion-collapse collapse "
data-bs-parent="#accordion-questions" role="tabpanel"
aria-labelledby="heading-question-2">
@foreach ($services as $service)
<div class="accordion-content text-16 leading-20 text-black bg-white px-10 flex items-center gap-10"
onclick="showTab('tab{{ $service->title }}')">
<i class="fa-solid fa-angles-right text-18 text-brand"></i>
<p>{{ $service->title }}</p>
</div>
@endforeach
</div>
</div>
</li>
</ul>
</div>
<div class="col col-md-7">
<div class="second-row">
<div class="tab-content active lg:w-full lg:text-end bg-center bg-contain bg-no-repeat -mt-20"
style="
background-image: url('{{ asset('raffles/assets/images/demo/start-hub-1/shape-Blob.svg') }});
">
<div data-custom-animations="true"
data-ca-options='{"animationTarget": ".content-inside", "ease": "power4.out", "initValues":{"y": "-50px", "opacity":0} , "animations":{"y": "0px", "opacity":1}}'>
<div class="content-inside">
<div class="w-60percent h-400 mx-auto lqd-imggrp-single relative monkey-img"
data-float="ease-in-out">
<img class="w-full h-full "
src="{{ asset('raffles/assets/images/general/monkey.png') }}" alt="">
<div class="absolute top-30 -left-20 flex gap-10 items-center">
<i class="fa-solid fa-arrow-left text-20 text-brand md:hiden"></i>
<i class="fa-solid fa-arrow-up text-20 text-brand md:bloc hidden"></i>
<h5 class="text-18 text-brand m-0">Search Here</h5>
</div>
</div>
</div>
</div>
</div>
@foreach ($countries as $country)
<div class="tab-content " id="tab{{ $country->title }}">
<div data-custom-animations="true"
data-ca-options='{"animationTarget": ".content-inside", "ease": "power4.out", "initValues":{"y": "-50px", "opacity":0} , "animations":{"y": "0px", "opacity":1}}'>
<div class="content-inside">
<h3 class="text-brand text-30 mb-30">{{ $country->title }}</h3>
<table class="">
@php
$countryDocs = $country->documents()->get();
@endphp
@foreach ($countryDocs as $doc)
@php
$path = $doc->collection_name . '/' . $doc->file_path;
$full_path = Storage::disk('public')->url($path);
@endphp
<tr>
<td class="pl-20 text-brand text-16">{{ $loop->index + 1 }}</td>
<td class="text-brand text-16">{{ $doc->title }}</td>
<td class=" flex items-center justify-end gap-10">
<a href="{{ $full_path }}" class="link-primary fs-15"
target="_blank">
<button
class="cursor-pointer px-20 py-10 bg-sec rounded-10 text-center text-white text-12 button-hover border-0">View</button>
</a>
<a href="{{ $full_path }}" class="link-primary fs-15"
download>
<button
class="cursor-pointer px-20 py-10 bg-green rounded-10 text-center text-white text-12 button-hover border-0">Download</button>
</a>
</td>
</tr>
@endforeach
</table>
</div>
</div>
</div>
@endforeach
@foreach ($tests as $test)
<div class="tab-content " id="tab{{ $test->title }}">
<div data-custom-animations="true"
data-ca-options='{"animationTarget": ".content-inside", "ease": "power4.out", "initValues":{"y": "-50px", "opacity":0} , "animations":{"y": "0px", "opacity":1}}'>
<div class="content-inside">
<h3 class="text-brand text-30 mb-30">{{ $test->title }}</h3>
<table class="">
@php
$testDocs = $test->documents()->get();
@endphp
@foreach ($testDocs as $docs)
@php
$paths = $docs->collection_name . '/' . $docs->file_path;
$full_paths = Storage::disk('public')->url($paths);
@endphp
<tr>
<td class="pl-20 text-brand text-16">{{ $loop->index + 1 }}</td>
<td class="text-brand text-16">{{ $docs->title }}</td>
<td class=" flex items-center gap-10 justify-end">
<a href="{{ $full_paths }}" class="link-primary fs-15 "
target="_blank">
<button
class="cursor-pointer px-20 py-10 bg-sec rounded-10 text-center text-white text-12 button-hover border-0">View</button>
</a>
<a href="{{ $full_paths }}" class="link-primary fs-15"
download>
<button
class="cursor-pointer px-20 py-10 bg-green rounded-10 text-center text-white text-12 button-hover border-0">Download</button>
</a>
</td>
</tr>
@endforeach
</table>
</div>
</div>
</div>
@endforeach
@foreach ($services as $service)
<div class="tab-content " id="tab{{ $service->title }}">
<div data-custom-animations="true"
data-ca-options='{"animationTarget": ".content-inside", "ease": "power4.out", "initValues":{"y": "-50px", "opacity":0} , "animations":{"y": "0px", "opacity":1}}'>
<div class="content-inside">
<h3 class="text-brand text-30 mb-30">{{ $service->title }}</h3>
<table class="">
@php
$serviceDocs = $service->documents()->get();
@endphp
@foreach ($serviceDocs as $docss)
@php
$pathss = $docss->collection_name . '/' . $docss->file_path;
$full_pathss = Storage::disk('public')->url($pathss);
@endphp
<tr>
<td class="pl-20 text-brand text-16">{{ $loop->index + 1 }}</td>
<td class="text-brand text-16">{{ $docss->title }}</td>
<td class=" flex items-center gap-10 justify-end">
<a href="{{ $full_pathss }}" class="link-primary fs-15"
target="_blank">
<button
class="cursor-pointer px-20 py-10 bg-sec rounded-10 text-center text-white text-12 button-hover border-0">View</button>
</a>
<a href="{{ $full_pathss }}" class="link-primary fs-15"
download>
<button
class="cursor-pointer px-20 py-10 bg-green rounded-10 text-center text-white text-12 button-hover border-0">Download</button>
</a>
</td>
</tr>
@endforeach
</table>
</div>
</div>
</div>
@endforeach
</div>
</div>
<div class="col col-md-2">
<div class="third-row">
<h3 class="text-brand text-20">Study Abroad</h3>
<div class="divider"></div>
<ul class="flex-flex-col gap-20 list-none px-0 py-20">
@foreach ($countries as $country)
<li class="py-10 border-bottom text-16 text-hover"><a class="text-grey "
href="{{ route('country.single', $country->slug) }}">{{ $country->title }}</a>
</li>
@endforeach
</ul>
<h3 class="text-brand text-20">Let's Connect Quick</h3>
<div class="divider"></div>
<form class="pt-20" action="">
<input class="w-full mb-30 rounded-6 py-15 text-14 px-10 border-bottom" type="text"
name="" id="" placeholder="Your Name">
<input class="w-full mb-30 rounded-6 py-15 text-14 px-10" type="email" name=""
id="" placeholder="Your Email">
<input class="w-full mb-30 rounded-6 py-15 text-14 px-10" type="email" name=""
id="" placeholder="Phone">
<textarea class="w-full mb-40 rounded-6 text-14 px-10" name="" id="" placeholder="Your Message"></textarea>
<button class="px-10 py-10 bg-brand text-white rounded-10 text-16 border-0 button-hover">
<i class="fa-solid fa-paper-plane text-white text-16 pr-5"></i>
Send Message</button>
</form>
</div>
</div>
</div>
</section>
</section>
@endsection