@extends('layouts.admin') @section('title', ($item ? 'Edit' : 'Add').' Project') @section('page-title', ($item ? 'edit' : 'add').' project') @push('styles') @endpush @section('content') @php $isEdit = (bool) $item; $lockedType = $lockedType ?? old('type', $item->type ?? 'ongoing'); $currentType = old('type', $lockedType); $backRoute = route('admin.projects.'.$currentType, ['tab' => 'projects']); $kindLabels = [ 'highlight' => 'Highlight', 'gallery' => 'Gallery', 'green_amenity' => 'Green Amenity', 'modern_amenity' => 'Modern Amenity', 'spec' => 'Spec', 'floorplan' => 'Floorplan', 'energy' => 'Energy', 'why_choose' => 'Why Choose', 'payment' => 'Payment', 'spotlight' => 'Spotlight', ]; @endphp

{{ $isEdit ? 'Edit' : 'Add' }} {{ ucfirst($currentType) }} Project

← Back to {{ ucfirst($currentType) }} Projects
@csrf @if($isEdit) @method('PUT') @endif
{{-- Tab 0: General --}}
@if(!empty($item->status_icon_1)) Status Icon 1 @endif
@if(!empty($item->status_icon_2)) Status Icon 2 @endif
show_on_home ?? 0))>
status ?? 1))>
{{-- Tab 1: Listing Images --}} {{-- Tab 2: Type Specific --}} {{-- Tab 3: Media --}} {{-- Tab 4: SEO --}}
@endsection @push('scripts') @endpush