@section('title') Approval Form @endsection @include('pages.apps.evaluation.partials.approval_stepper', ['currentStep' => 1, 'role' => 'project-leader'])

{{ ucfirst($application->type) . ' Details' }}

{{ ucfirst($application->type) . ' Details' }}

{{ $application->product_group->parent->parent->name }}
{{ $application->product_group->parent->name }}
{{ $application->product_group->name }}
@if ($application->type == \App\Models\Application::TYPE_SERVICE) @else @endif @foreach ($application->items as $item) @php $name = ''; $formDetailName = $application->type == \App\Models\Application::TYPE_SERVICE ? 'Service' : 'Product'; $name = optional( $item->itemDetails ->firstWhere(fn($detail) => $detail->formDetail->name === $formDetailName . ' Name') )->value ?? '-'; $serviceDescription = optional( $item->itemDetails ->firstWhere(fn($detail) => $detail->formDetail->name === 'Service Description') )->value ?? '-'; $brand = optional( $item->itemDetails ->firstWhere(fn($detail) => $detail->formDetail->name === 'Brand') )->value ?? '-'; $models = ['Model', 'Product code/ Model']; $model = $item->getItemDetailValue($models) ?? '-'; @endphp @if ($application->type == \App\Models\Application::TYPE_SERVICE) @endforeach
{{ ucfirst($application->type) . ' List' }}
{{ __('No.') }} {{ ucfirst($application->type) . ' Name' }}{{ __('Description') }}{{ __('Brand') }} {{ __('Model') }}{{ __('Action') }}
{{ '1' }} {{ $name }}{{ $serviceDescription }} @else {{ $brand }} {{ $model }} @endif
@if ($application_section != null) @endif
@push('scripts') @endpush