@extends('layouts.app') @section('page-pretitle', __('Management')) @section('page-title', __('Edit Project')) @section('content') @if ($errors->any()) @endif
License & Renewal
@csrf
@foreach ($project->notes as $note)
{{-- --}}
@endforeach
{{-- --}} @csrf @method('PUT')

{{ __('Reference Info:') }} UT – Ubahan Tambahan, PB – Pelan Bangunan, ID – Interior Design
is_registration ?? false) ? 'checked' : '' }} />
{{--
is_finished ?? false) ? 'checked' : '' }}/>
--}}

{{ __('Project Description') }}

{{ __('Client') }}

{{ __('Scope') }}

{{ __('Project Type') }}

{{ __('Project Phase') }}

{{ __('Received Year') }}

{{ __('Start Date') }}

{{ __('End Date') }}

{{ __('Assignees') }} *

@foreach($users as $user) @endforeach
Please select at least one assignee.

{{ __('Submission Types') }}

@foreach($submissionTypes as $index => $type) @php $submission = $project->submissionTypes->firstWhere('pivot.submission_type_id', $type->id); $isChecked = $submission && ($submission->pivot->submission_date || $submission->pivot->file_no || $submission->pivot->remarks || $submission->pivot->status_id); @endphp
@endforeach

{{ __('Remarks') }}

{{-- Project Timeline Table --}}
@php $timelines = $project->timelines()->orderBy('timeline_date')->get(); $labelDate = __('Date'); $labelRemark = __('Remark'); $labelAdd = __('Add Another'); $labelRemove = __('Remove'); @endphp

{{ __('Timeline') }}

@foreach($timelines as $timeline) @endforeach
{{ $labelDate }} {{ $labelRemark }} {{ __('Action') }}
@push('styles') @endpush

@if ($project->documents->isNotEmpty())

Uploaded Images

@php $images = $project->documents->filter(function($doc) { $ext = pathinfo($doc->path, PATHINFO_EXTENSION); return in_array(strtolower($ext), ['jpg', 'jpeg', 'png']); })->values(); @endphp @if($images->isEmpty())

No images uploaded

@else @foreach($images->chunk(4) as $row)
@foreach($row as $doc)
{{ $doc->original_name }}
{{ $doc->original_name }} @if($doc->uploaded_at)
{{ \Carbon\Carbon::parse($doc->uploaded_at)->format('d-m-Y') }} @endif
@endforeach @for($i = $row->count(); $i < 4; $i++)
@endfor
@endforeach @endif
@else

Uploaded Images

No images uploaded

@endif @php // Filter only non-image files $files = $project->documents->filter(function($doc) { $ext = pathinfo($doc->path, PATHINFO_EXTENSION); return !in_array(strtolower($ext), ['jpg', 'jpeg', 'png']); }); @endphp @if ($files->isNotEmpty()) @else

Uploaded Files

No files uploaded

@endif

Upload New Images or Documents

Allowed types: JPG, PNG, PDF, DOCX, TXT, XLS, XLSX, ZIP. You can select multiple files and upload them multiple times.
{{--
{{ __('Back') }}
--}}
@php use Illuminate\Support\Facades\Route; $previousUrl = url()->previous(); $projectListUrl = route('project_list.index'); $documentsUrl = route('documents.index'); @endphp {{ __('Back') }}
@endsection @push('scripts') @endpush