@php $selectedTechnologies = collect(old('technologies', isset($project) ? $project->technologies->pluck('id')->all() : [])) ->map(function ($id) { return (string) $id; }) ->all(); $statusValue = old('status', isset($project) ? strtolower((string) $project->status) : 'active'); $showTechnologyQuickAdd = $showTechnologyQuickAdd ?? false; $allowTechnologyDelete = $allowTechnologyDelete ?? false; @endphp
@error('project_name')
{{ $message }}
@enderror
@error('short_description')
{{ $message }}
@enderror
@error('github_link')
{{ $message }}
@enderror
@error('live_demo_link')
{{ $message }}
@enderror
{{ $statusValue === 'active' ? 'Active' : 'Inactive' }}
@error('status')
{{ $message }}
@enderror
@if(isset($project) && !empty($project->image))
{{ $project->project_name }}
Current Preview

Upload a new image only if you want to replace the existing one.

@endif

{{ isset($project) ? 'Upload a replacement image' : 'Choose a project preview image' }}

{{ isset($project) ? 'Leave this empty to keep the current image.' : 'JPG, PNG, or WEBP up to 2MB.' }}

@error('image')
{{ $message }}
@enderror
Choose at least one @if($showTechnologyQuickAdd) @endif
@include('projects._technology_options', [ 'technologies' => $technologies, 'selectedTechnologies' => $selectedTechnologies, 'allowTechnologyDelete' => $allowTechnologyDelete, ]) @error('technologies')
{{ $message }}
@enderror