@php $adminBusiness = $s ?? \App\Models\Setting::allValues(); $sevaAdmin = \App\Support\TemplateLibrary::active() === 'seva'; $newsAdmin = \App\Support\TemplateLibrary::active() === 'news'; $erpAdmin = \App\Support\TemplateLibrary::active() === 'erp'; $erpLabels = \App\Support\ErpTheme::TYPES; $contentType = $type ?? ($item->type ?? ''); $activeArea = $section === 'edit' || $section === 'contents' ? $contentType : $section; $pageTitle = match($section) { 'dashboard' => 'Overview', 'settings' => 'Business settings', 'contents' => match($type) { 'page' => 'Website pages', 'service' => $newsAdmin ? 'News articles' : ($sevaAdmin ? 'Centre services' : 'Services & products'), 'banner' => 'Homepage slider', default => $erpLabels[$type] ?? 'Gallery' }, 'edit' => 'Edit '.($item->type === 'service' ? ($newsAdmin ? 'news article' : ($sevaAdmin ? 'centre service' : 'product / service')) : $item->type), default => 'Customer enquiries' }; $pageHint = match($section) { 'dashboard' => 'A clear view of your business website.', 'settings' => 'Your brand, contact details and social presence.', 'contents' => 'Keep your website fresh and up to date.', 'edit' => 'Make your changes below, then save when you’re ready.', default => 'Every conversation is a new opportunity.' }; @endphp {{ $pageTitle }} · Business Kit
Workspace / {{ $pageTitle }}

YOUR BUSINESS, AT A GLANCE

{{ $pageTitle }}

{{ $pageHint }}

View website @include('partials.admin-icon',['icon'=>'arrow'])
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())@endif @if($section === 'dashboard')

WEBSITE MANAGEMENT

A clear workspace.
Everything within reach.

Welcome back, {{ auth()->user()->name }}. Manage your content, update business details and follow up on customer enquiries.

Manage website pages
@foreach([[$newCount,'New enquiries','Awaiting your response','/admin/enquiries','enquiries'],[$serviceCount,'Products & services','In your collection','/admin/content/service','service'],[$galleryCount,'Gallery images','Your business in pictures','/admin/content/gallery','gallery']] as [$count,$label,$hint,$path,$symbol])
{{ $symbol === 'service' ? ($newsAdmin ? 'News articles' : ($sevaAdmin ? 'Centre services' : $label)) : $label }}@include('partials.admin-icon',['icon'=>$symbol])
{{ $count }}
{{ $hint }}
@endforeach

Recent enquiries

Your latest customer conversations.

View all →
@forelse($recentEnquiries as $recent){{ mb_substr($recent->name,0,1) }}
{{ $recent->name }}

{{ \Illuminate\Support\Str::limit($recent->message,65) }}

{{ ucfirst($recent->status) }}
@empty
@include('partials.admin-icon',['icon'=>'enquiries'])

Your next conversation starts here.

Messages from your website’s contact form will appear here, ready for you to follow up.

View contact page ↗
@endforelse

Make it your own

A few useful places to start.

@foreach([['settings','Business details','Logo, contact & social links','/admin/settings'],['banner','Homepage highlights','Give your offers the spotlight','/admin/content/banner'],['gallery','A closer look','Add photos of your business','/admin/content/gallery']] as [$symbol,$title,$hint,$path]) @include('partials.admin-icon',['icon'=>$symbol])
{{ $title }}{{ $hint }}
@endforeach
{{ \App\Support\TemplateLibrary::get(\App\Support\TemplateLibrary::active())['label'] }} template
@elseif($section === 'settings')
@csrf @method('PUT') @foreach([ ['01','Brand & identity','The details that make your website yours.',['name'=>'Business name *','tagline'=>'Tagline','accent'=>'Brand colour *','footer'=>'Footer text']], ['02','Contact & location','Help customers find you and get in touch.',['email'=>'Contact email','phone'=>'Phone number','whatsapp'=>'WhatsApp number','hours'=>'Opening hours']], ['03','Social presence','Connect your website to your social profiles.',['instagram_url'=>'Instagram profile URL','facebook_url'=>'Facebook profile URL','youtube_url'=>'YouTube profile URL','linkedin_url'=>'LinkedIn profile URL']] ] as [$number,$heading,$hint,$fields])
{{ $number }}

{{ $heading }}

{{ $hint }}

@foreach($fields as $key=>$label)
@if($key === 'whatsapp')

Country code + number, digits only. Example: 919876543210. Leave blank to hide WhatsApp.

@endif
@endforeach @if($number === '01')

JPG, PNG or WebP · Up to 2 MB

@if($s['logo'])Current logo@endif
@endif @if($number === '02')

Google Maps → Share → Embed a map. Copy the iframe’s src URL, beginning https://www.google.com/maps/embed.

@endif @if($number === '03')

Use full HTTPS profile links. Leave a field blank to hide that icon.

@endif
@endforeach @if($erpAdmin)

Demo enquiry popup

The demo buttons always work. The automatic prompt is optional and closes for the rest of the visitor’s browser session.

@endif
Ready when you are. Save to update your website.
@elseif($section === 'contents') @if($type === 'banner')

THREE BANNERS. ONE BEAUTIFUL INTRODUCTION.

Your homepage, in the spotlight.

The first banner uses your Home page title, description and hero image. Add up to two extra banners below. Published extras appear in sort order after the first banner.

Use short titles and landscape JPG, PNG or WebP images (recommended 1600 × 1200, up to 4 MB). Keep text in the fields rather than inside images. Template artwork is also available. Hide all extras to return to a single hero.

Edit first banner →
@endif @if($type !== 'page' && ($type !== 'banner' || $items->count() < 2))
@csrf
@endif
@forelse($items as $content)
@if($content->image)@else @include('partials.admin-icon',['icon'=>$content->type]) @endif
{{ str_replace("\n", ' ', $content->title) }}
{{ $content->type === 'page' ? '/'.($content->slug === 'home' ? '' : $content->slug) : ($content->published ? 'Published' : 'Draft') }}Updated {{ $content->updated_at->format('d M Y') }}
Edit →
@empty

No items yet. Create your first draft above.

@endforelse
@elseif($section === 'edit')
@csrf @method('PUT')
@if($item->type === 'service')

Used by collection category filters.

@endif @if($item->type === 'banner')

An uploaded image takes priority over template artwork.

Leave both button fields empty to hide the button.

@endif

Plain text. Line breaks are preserved. HTML is displayed as text.

@if($sevaAdmin && $item->type === 'service')@include('partials.seva-admin-fields')@endif @if($newsAdmin && $item->type === 'service')@include('partials.news-admin-fields')@endif @if($erpAdmin && in_array($item->type, ['service','app','team','benefit','faq'])) @include('partials.erp-admin-fields') @endif

JPG, PNG or WebP, up to 4 MB. Gallery items need an image before publishing.

@if($item->image)Current image@endif
@if($item->type === 'page' || ($newsAdmin && $item->type === 'service'))
@endif
@if($item->type !== 'page')
@endif
Back to list
@if($item->type !== 'page')
@csrf @method('DELETE')
@endif @elseif($section === 'enquiries')

Messages submitted through your contact page. Keep track of your follow-ups here.

@forelse($items as $enquiry)

{{ $enquiry->name }}

@if($enquiry->email) {{ $enquiry->email }} @endif @if($enquiry->phone)

{{ $enquiry->phone }}

@endif @if($enquiry->service_name)

Enquiry for: {{ $enquiry->service_name }}

@endif

{{ $enquiry->created_at->format('d M Y, h:i A') }}

{{ $enquiry->message }}

@csrf @method('PATCH')
@csrf @method('DELETE')
@empty

No enquiries yet.

New contact form messages will appear here.

@endforelse @endif