@if(session('success')){{ session('success') }}
@endif @if($errors->any())@foreach($errors->all() as $error)
{{ $error }}
@endforeach
@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 → @include('partials.admin-icon',['icon'=>'page']) CURRENT WEBSITE
{{ $adminBusiness['name'] }} {{ \App\Support\TemplateLibrary::get(\App\Support\TemplateLibrary::active())['label'] }} Manage business settings ↗
@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
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')
@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))@csrfNew {{ $type === 'service' ? ($newsAdmin ? 'news article' : ($sevaAdmin ? 'centre service' : 'service / product')) : ($type === 'banner' ? 'extra banner' : ($erpLabels[$type] ?? 'gallery item')) }} title
Create draft + @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')Title * {{ old('title', $item->title) }}
Eyebrow / subtitle
@if($item->type === 'service')
{{ $newsAdmin ? 'Illustrative image' : ($sevaAdmin ? 'Service icon' : 'Fallback product illustration') }} None / use uploaded image @foreach(['seva_form'=>'Online form','seva_print'=>'Printing & scanning','seva_document'=>'Document assistance','seva_status'=>'Application status','seva_bill'=>'Bill guidance','seva_typing'=>'Typing & formatting','news_city'=>'City scene','news_business'=>'Business','news_technology'=>'Technology','news_lifestyle'=>'Lifestyle','news_food'=>'Food & culture','washer'=>'Washing machine','fridge'=>'Refrigerator','tv'=>'Television','ac'=>'Air conditioner','microwave'=>'Microwave','mixer'=>'Mixer grinder','chair'=>'Lounge chair','table'=>'Coffee table','shelf'=>'Display shelf','sofa'=>'Sofa','bedside'=>'Bedside table','vases'=>'Vases','thali'=>'Thali','curry'=>'Curry','rice'=>'Rice','sandwich'=>'Sandwich','chai'=>'Chai','tiffin'=>'Tiffin','code'=>'Software / code','mobile'=>'Mobile application','design'=>'Interface design','cloud'=>'Cloud integration','automation'=>'Automation','support'=>'Technical support','retreat'=>'Resort / retreat','suite'=>'Guest room / suite','lawn'=>'Party lawn / event space','wine_red'=>'Red wine bottle','wine_white'=>'White wine bottle','wine_rose'=>'Rosé wine bottle','wine_sparkling'=>'Sparkling wine bottle','winebar'=>'Wine bar setting','erp_retail'=>'ERP retail dashboard','erp_mandi'=>'ERP market dashboard','erp_lab'=>'ERP laboratory dashboard','erp_campus'=>'ERP school dashboard','erp_other'=>'ERP product dashboard'] as $key=>$label)@if(($newsAdmin && str_starts_with($key,'news_')) || ($sevaAdmin && str_starts_with($key,'seva_')) || (!$newsAdmin && !$sevaAdmin && !str_starts_with($key,'news_') && !str_starts_with($key,'seva_')))illustration) === $key)>{{ $label }} @endif @endforeach
@endif
@if($item->type === 'banner')
Template artwork Use uploaded image @foreach(['hero' => 'Signature scene', 'collection' => 'Collection highlight', 'detail' => 'Featured detail'] as $key => $label)illustration) === $key)>{{ $label }} @endforeachAn uploaded image takes priority over template artwork.
Button text
Button destination No button @foreach(\App\Support\HomeBanners::DESTINATIONS as $path => $label)button_path) === $path)>{{ $label }} @endforeachLeave both button fields empty to hide the button.
@endif
Description / page content {{ old('body', $item->body) }} 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
@if($item->type === 'page' || ($newsAdmin && $item->type === 'service'))
SEO title
SEO description {{ old('seo_description', $item->seo_description) }}
@endif
Sort order
@if($item->type !== 'page')
published))>Published on website
@endif
@if($item->type !== 'page')@csrf @method('DELETE')Delete item @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')
Status
@foreach(['new', 'contacted', 'closed'] as $status)
status === $status)>
{{ ucfirst($status) }}
@endforeach
Update
@csrf
@method('DELETE')
Delete
@empty
No enquiries yet.
New contact form messages will appear here.
@endforelse
@endif