@extends('layouts.admin') @section('title', ($item ? 'Edit' : 'Add').' Ongoing Project') @section('page-title', ($item ? 'edit' : 'add').' ongoing project') @push('styles') @endpush @section('content') @php $isEdit = (bool) $item; $mediaByKind = $media->groupBy('kind'); $kindMedia = fn ($kind) => ($mediaByKind[$kind] ?? collect())->values(); @endphp

{{ $isEdit ? 'Edit' : 'Add' }} Ongoing Project

← Back to Ongoing Projects
@csrf @if($isEdit) @method('PUT') @endif
{{-- Tab 0: General --}}
@if(!empty($item->status_icon_1)) @endif
@if(!empty($item->status_icon_2)) @endif
@if(!empty($item->collection_image)) @endif
@if(!empty($item->brochure_path))

Current: @if(str_starts_with($item->brochure_path, 'projects/')) Download brochure @else {{ $item->brochure_path }} @endif

Brochure marked for removal. Save to confirm.

@endif
show_on_home ?? 0))>
status ?? 1))>
{{-- Tab 1: Details --}} {{-- Tab 2: Highlights --}} {{-- Tab 3: Nature --}} {{-- Tab 4: Why Choose --}} {{-- Tab 5: Gallery --}} {{-- Tab 6: Amenities --}} {{-- Tab 7: Specification --}} {{-- Tab 8: Floorplan --}} {{-- Tab 9: Location --}} {{-- Tab 10: Easy Payment --}} {{-- Tab 11: SEO --}}
@endsection @push('scripts') @include('admin.projects._form-scripts', ['useCkEditor' => true]) @endpush