@extends('frontend.layouts.app') @section('title', 'Volunteer') @php use App\Helpers\Helper; @endphp @section('content') {{-- Hero Section --}} @include('frontend.partials.hero', [ 'mainHeading' => Helper::contentText('pages.volunteer'), 'subHeading' => Helper::contentText('pages.volunteer_description'), 'breadcrumb1' => [ 'name' => __('route.home'), 'route' => route('home'), ], 'breadcrumb2' => [ 'name' => __('route.volunteer'), 'route' => route('volunteer-page.show'), 'class' => 'text-gray-400', ], 'breadcrumb3' => null, 'breadcrumb4' => null, ])
@php $isEn = app()->getLocale() == 'en'; $photos = $volunteer->images ? json_decode($volunteer->images, true) ?? [] : []; $highlight = $volunteer->highlight_image ?: 'assets/frontend/images/default-image.png'; $fallback = asset('assets/frontend/images/default-image.png'); @endphp {{-- ============ Introduction: one column, image first ============ --}}
Volunteers
{!! Helper::stripInlineStyle( $isEn ? $volunteer->description_en ?? '' : $volunteer->description_np ?? ($volunteer->description_en ?? ''), ) !!}
@if (!empty(trim(strip_tags($volunteer->need_of_volunteer_en ?? ''))))

{!! Helper::content('pages.volunteer_why_needed') !!}

{!! Helper::stripInlineStyle( $isEn ? $volunteer->need_of_volunteer_en ?? '' : $volunteer->need_of_volunteer_np ?? ($volunteer->need_of_volunteer_en ?? ''), ) !!}
@endif

{!! Helper::content('homepage.what_we_look_in_volunteers') !!}

{!! Helper::stripInlineStyle( $isEn ? $volunteer->qualification_en ?? '' : $volunteer->qualification_np ?? ($volunteer->qualification_en ?? ''), ) !!}
{!! Helper::content('pages.volunteer_form') !!}
@if (count($photos))
@foreach (array_slice($photos, 0, 3) as $i => $image)
Volunteers
@endforeach
@endif
@include('frontend.volunteer.partials.form')
@endsection @include('frontend.volunteer.partials.form-scripts')