@extends('index') @push('styles') Home - Protik Goswami @section('home-section')
@php try { $animEnabled = \App\Models\HomeContent::getContent('animation_enabled', '1') === '1'; } catch (\Throwable $e) { $animEnabled = true; // Default to enabled } @endphp @if($animEnabled) @endif
@php try { $title = \App\Models\HomeContent::getContent('title', 'Hi there,
I\'m Protik Goswami
Web Designer'); $subtitle = \App\Models\HomeContent::getContent('subtitle', 'Passionate about creating amazing web experiences'); } catch (\Throwable $e) { $title = 'Hi there,
I\'m Protik Goswami
Web Designer'; $subtitle = 'Passionate about creating amazing web experiences'; } @endphp

{!! $title !!}

{!! $subtitle !!}

    @php try { $skills = \App\Models\HomeContent::getContent('skills_list', "* Network Security Specialist\n* Programming\n* UI/UX Design\n* Artificial Intelligence"); $skillsArray = explode("\n", $skills); } catch (\Throwable $e) { $skillsArray = ["* Network Security Specialist", "* Programming", "* UI/UX Design", "* Artificial Intelligence"]; } @endphp @foreach($skillsArray as $skill) @if(trim($skill) !== '')
  • {{ ltrim(trim($skill), '*') }}
  • @endif @endforeach
@php // Force fresh data from database $profileSettings = \App\Models\ProfileImageSetting::getSettings(); $profileImage = $profileSettings->profile_image ? asset('storage/' . $profileSettings->profile_image . '?v=' . time()) : asset('assets/img/protik.png?v=' . time()); $imageAlt = $profileSettings->image_alt_text ?: 'Profile Image'; @endphp @php $shadowHex = ltrim($profileSettings->shadow_color ?? '#000000', '#'); $sr = hexdec(substr($shadowHex, 0, 2)); $sg = hexdec(substr($shadowHex, 2, 2)); $sb = hexdec(substr($shadowHex, 4, 2)); $sop = ($profileSettings->shadow_opacity ?? 30) / 100; $shadowFilter = "drop-shadow(0 8px 16px rgba($sr, $sg, $sb, $sop))"; @endphp
@if($animEnabled) @endif @endsection