@extends('website_builder.agency_template.admin.layout') @section('title', 'Edit Portfolio Page - DesignAGENCY Admin') @section('content')

Edit Portfolio Page

Update portfolio hero badge, projects grid items, category tags, and cover images.

Preview Portfolio Page
@csrf
Portfolio Hero Section
@if(!empty($agency->portfolio_hero_image))
Current Hero Image Preview:
@endif
Portfolio Projects Gallery

Add, edit titles, set category tags (e.g. Web Design, UI/UX Design, Branding, Mobile App), and upload project images.

@php $rawPort = $agency->portfolio_data ?? null; if (is_string($rawPort)) { $dec = json_decode($rawPort, true); $rawPort = is_string($dec) ? json_decode($dec, true) : $dec; } $portfolioData = (is_array($rawPort) && count($rawPort) > 0) ? $rawPort : []; if (empty($portfolioData)) { $currTmpl = $agency->template_type ?? session('demo_template', 'digital_agency'); $dummyTmplAgency = \App\Models\WebsiteBuilder\WbAgencySetting::getDemoDefaults($currTmpl); $portfolioData = is_array($dummyTmplAgency->portfolio_data) ? $dummyTmplAgency->portfolio_data : []; } @endphp
@foreach($portfolioData as $pi => $port)
Project #{{ $loop->iteration }}
@if(!empty($port['image']))
Preview:
@endif
@endforeach
@endsection