88@php $totalRemainingEinnahmen = $project -> totalRemainingEinnahmen () @endphp
99@php $totalRatioEinnahmen = $project -> totalRatioEinnahmen (); @endphp
1010
11- <div class =" min-h-screen bg-gradient-to-br from-gray-50 to-gray-100 py-8" >
11+ <div class =" min-h-screen py-8" >
1212 <div class =" max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 space-y-4" >
1313
1414 <!-- Header with Status and Actions -->
5757 <flux:button icon =" ellipsis-vertical" />
5858
5959 <flux:menu >
60- <flux:menu .item href =" {{ route (' project.history' , $project -> id ) } }" icon =" inbox-stack" >
61- Secret New Feature :)
62- </flux:menu .item >
63- <flux:menu .item icon =" document-duplicate" >
64- Duplicate (WIP)
65- </flux:menu .item >
6660 <flux:menu .item icon =" clock" href =" {{ route (' legacy.projekt' , $project -> id ) } }" >
6761 {{ __ (' project.view.header.old-view' ) } }
6862 </flux:menu .item >
8377 <div >
8478 <p class =" text-xs font-medium text-gray-500 uppercase" >{{ __ (' project.view.summary_cards.state' ) } } </p >
8579 <p @class ([
86- " font-bold mt-1" ,
87- " text-zinc-600" => $project -> state -> color () === " zinc" ,
88- " text-sky-600" => $project -> state -> color () === " sky" ,
89- " text-yellow-600" => $project -> state -> color () === " yellow" ,
90- " text-green-600" => $project -> state -> color () === " green" ,
91- " text-rose-600" => $project -> state -> color () === " rose" ,
92- ] )>
80+ " font-bold mt-1" ,
81+ " text-zinc-600" => $project -> state -> color () === " zinc" ,
82+ " text-sky-600" => $project -> state -> color () === " sky" ,
83+ " text-yellow-600" => $project -> state -> color () === " yellow" ,
84+ " text-green-600" => $project -> state -> color () === " green" ,
85+ " text-rose-600" => $project -> state -> color () === " rose" ,
86+ ] )>
9387 {{ $project -> state -> label () } }
9488 </p >
9589 </div >
266260
267261 </div >
268262
269- <!-- Approval Section -->
270- <div class =" bg-white rounded-2xl shadow-accent border border-gray-200 p-6" >
271- <h2 class =" text-xl font-bold text-gray-900 mb-4" >{{ __ (' project.view.approval.heading' ) } } </h2 >
272- <div class =" grid grid-cols-1 lg:grid-cols-2 gap-4" >
273- <div >
274- <label
275- class =" block text-sm font-medium text-gray-700 mb-1" >{{ __ (' project.view.approval.legal_basis' ) } } </label >
276- @empty ($project -> recht )
277- <p class =" text-gray-500 italic" >{{ __ (' project.view.approval.none' ) } } </p >
278- @else
279- <p class =" text-gray-900" >{{ $project -> getLegal ()[' label' ] } } </p >
280- @endisset
281- </div >
282- <div >
283- @if ($project -> getLegal () )
263+ @if ($showApproval )
264+ <!-- Approval Section -->
265+ <div class =" bg-white rounded-2xl shadow-accent border border-gray-200 p-6" >
266+ <h2 class =" text-xl font-bold text-gray-900 mb-4" >{{ __ (' project.view.approval.heading' ) } } </h2 >
267+ <div class =" grid grid-cols-1 lg:grid-cols-2 gap-4" >
268+ <div >
284269 <label
285- class =" block text-sm font-medium text-gray-700 mb-1" >{{ $project -> getLegal ()[' label-additional' ] } } </label >
286- @if ($project -> recht_additional )
287- <p class =" text-gray-900" >{{ $project -> recht_additional } } </p >
288- @else
270+ class =" block text-sm font-medium text-gray-700 mb-1" >{{ __ (' project.view.approval.legal_basis' ) } } </label >
271+ @empty ($project -> recht )
289272 <p class =" text-gray-500 italic" >{{ __ (' project.view.approval.none' ) } } </p >
273+ @else
274+ <p class =" text-gray-900" >{{ $project -> getLegal ()[' label' ] } } </p >
275+ @endisset
276+ </div >
277+ <div >
278+ @if ($project -> getLegal () )
279+ <label
280+ class =" block text-sm font-medium text-gray-700 mb-1" >{{ $project -> getLegal ()[' label-additional' ] } } </label >
281+ @if ($project -> recht_additional )
282+ <p class =" text-gray-900" >{{ $project -> recht_additional } } </p >
283+ @else
284+ <p class =" text-gray-500 italic" >{{ __ (' project.view.approval.none' ) } } </p >
285+ @endif
290286 @endif
287+ </div >
288+ @if (! empty ($project -> getLegal ()[' hint-text' ]) )
289+ <div class =" lg:col-span-2 mt-2" >
290+ <p class =" text-sm text-gray-500 mt-1" >{{ $project -> getLegal ()[' hint-text' ] ?? ' ' } } </p >
291+ </div >
291292 @endif
292293 </div >
293- @if (! empty ($project -> getLegal ()[' hint-text' ]) )
294- <div class =" lg:col-span-2 mt-2" >
295- <p class =" text-sm text-gray-500 mt-1" >{{ $project -> getLegal ()[' hint-text' ] ?? ' ' } } </p >
296- </div >
297- @endif
298294 </div >
299- </ div >
295+ @endif
300296
301297 <!-- Project Details -->
302298 <div class =" bg-white rounded-2xl shadow-accent border border-gray-200 p-6" >
@@ -318,7 +314,7 @@ class="block text-sm font-medium text-gray-700 mb-1">{{ __('project.view.details
318314 <div >
319315 <label
320316 class =" block text-sm font-medium text-gray-700 mb-1" >{{ __ (' project.view.details.responsible' ) } } </label >
321- @if (empty ($project -> responsible ) )
317+ @if (empty ($project -> responsible ) )
322318 <x-no-content />
323319 @else
324320 <a href =" mailto:{{ $project -> responsible } }"
@@ -490,7 +486,17 @@ class="inline-flex items-center text-indigo-600 hover:text-indigo-800 transition
490486 {!! Str:: markdown ($project -> beschreibung ) ! !}
491487 </p >
492488 @endempty
493-
489+ <div class =" grid grid-cols-1 lg:grid-cols-3 gap-6 mt-6" >
490+ @foreach ($project -> attachments as $attachment )
491+ <x-file-card
492+ :href =" route('project.attachment', [$attachment->id, $attachment->name])"
493+ :heading =" $attachment->name"
494+ :size =" $attachment->size"
495+ :url =" $attachment->url"
496+ :icon =" $attachment->mime_type"
497+ />
498+ @endforeach
499+ </div >
494500 </div >
495501
496502 <!-- Expenses Section -->
0 commit comments