@extends('layouts.app') @section('content')
@if (isset($list))
@foreach ($records as $record) @endforeach
SN Image Category Name Build Up Area Timeline Status Action
{{ $loop->iteration }} {{ $record->projectCategory->name }} {{ excerpt($record->name, 45) }} {{ $record->build_up_area }} {{ $record->timeline }} {{ $record->status }}
@csrf @method('DELETE')
@csrf @method('PUT')
{{ $records->links() }}
@elseif(isset($show))
Fields : Values
Gallery Images :
@foreach ($record->galleries as $gallery) @endforeach
Category : {{ $record->projectCategory->name }}
name : {{ $record->name }}
Slug : {{ $record->slug }}
URL : @php $route = route('project-details', [$record->projectCategory->slug, $record->slug]); @endphp {{ $route }}
Build Up Area : {{ $record->build_up_area }}
Timeline : {{ $record->timeline }}
Service Highlight :
    @foreach($record->service_highlight ?? [] as $sh_key => $highlight)
  1. {{ $highlight }}
  2. @endforeach
Description : {!! $record->description !!}
Show In Home : {{ $record->is_home }}
Status : {{ $record->status }}
Page Title : {{ optional($record->metaData)->page_title }}
Meta Title : {{ optional($record->metaData)->meta_title }}
Meta Keywords : {{ optional($record->metaData)->meta_keywords }}
Meta Description : {{ optional($record->metaData)->meta_description }}
Schema Code : {!! optional($record->metaData)->schema_code !!}
@elseif(isset($edit) || isset($create))
@csrf @if (isset($edit)) @method('PUT') @endif
@if ($errors->has('project_category_id')) {{ $errors->first('project_category_id') }} @endif
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
{{ url('/') }}/project/
@if ($errors->has('slug')) {{ $errors->first('slug') }} @endif
@foreach ($images as $ik => $iv)
@if ($ik == 0) @else @endif
@if (isset($record)) {!! viewFile('project/', $iv->image) !!} @endif
@endforeach
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
@if ($errors->has('build_up_area')) {{ $errors->first('build_up_area') }} @endif
@if ($errors->has('timeline')) {{ $errors->first('timeline') }} @endif
@php($highlights = old('service_highlight', isset($record) ? $record->service_highlight : [''])) @foreach ($highlights ?? [''] as $index => $highlight)
@if ($index == 0) @else @endif
@endforeach @error('service_highlight.*') {{ $message }} @enderror
@if ($errors->has('is_home')) {{ $errors->first('is_home') }} @endif
@if ($errors->has('status')) {{ $errors->first('status') }} @endif

SEO Setup


@if ($errors->has('page_title')) {{ $errors->first('page_title') }} @endif
@if ($errors->has('meta_title')) {{ $errors->first('meta_title') }} @endif
@if ($errors->has('meta_keywords')) {{ $errors->first('meta_keywords') }} @endif
@if ($errors->has('meta_description')) {{ $errors->first('meta_description') }} @endif
@if ($errors->has('schema_code')) {{ $errors->first('schema_code') }} @else @endif
@php($imagePath = isset($record) && $record->image != null ? asset('storage/project/' . $record->image) : asset('images/default_image.png'))
Image Preview.
@endif
@endsection @push('scripts') @endpush