@extends('layouts.dashboard') @php // $proposalTabs = [ // 'basic-info' => 'view-proposal', // existing // 'consortium' => 'view-proposal.consortium', // 'personal' => 'view-proposal.personal', // 'budget' => 'view-proposal.budget', // 'files' => 'view-proposal.files', // 'evaluation' => 'evaluator.proposal.evaluation', // ]; // // // Resolve which tab is currently active from the route name. // // Falls back to basic-info on the default route or anything unknown. // $currentTab = array_search(Route::currentRouteName(), $proposalTabs, true) ?: 'basic-info'; @endphp @section('nav-top-left')
Proposal by {{$proposal->applicant->firstname .' '. $proposal->applicant->lastname}}
Review Proposal Data
@endsection @section('nav-bottom-left') @endsection @section('content') @include('proposal.proposal-parts.proposal-subviews.nav_tabs')
@if(filled($proposal->files)) @foreach($proposal->files as $file) @php $file_tag = explode('_', $file->ui_tag); $name = mb_strtoupper($file_tag[0]); if(isset($file_tag[1])){ $name .= ' '.mb_strtoupper($file_tag[1]); } @endphp

{{$name}}

File Name:
{{ $file->originalFilename }}
Download

Last Update:
{{ $file->updated_at }}

@endforeach @else

No files uploaded for this proposal.

@endif
@endsection