@extends('layouts.master', [ 'class' => 'ppap', ]) @section('content') @component('components.card_main', [ 'title' => 'Suppliers APQP Project configuration', 'description' => 'Here you can edit, and configure this APQP Project and his documents.' ]) @slot( 'body' )
Name: {{$project->name}} @if ($user->ppap_role['role'] == Role::PPAP_ADMIN) @component('components.button', ['id'=>'edit_document_name','type'=>'edit','btn_icon'=>true])@endcomponent @endif
Status: {{$project->state_name}} @if ($user->ppap_role['role'] == Role::PPAP_ADMIN) @component('components.button', ['id'=>'edit_document_status','type'=>'edit','btn_icon'=>true])@endcomponent @endif
Part Number: {{$project->part_number ? $project->part_number->name : '____'}}
Revision: {{$project->version ? $project->version : '____'}} @if ($user->ppap_role['role'] == Role::PPAP_ADMIN) @component('components.button', ['id'=>'edit_document_version','type'=>'edit','btn_icon'=>true])@endcomponent @endif
Submission Level: {{$project->submission_level}}
Phase: {{$project->phase}}
Plant: {{$project->plant->name}}, {{$project->sub_plant->name}}
Supplier: {{$project->supplier_plant->name}}
Created At: {{$project->created_at_dmy}}
Created By: {{$project->creator->full_name}}
Progress:
{{$project->progress['legend']}}
@if ($user->ppap_role['role'] == Role::PPAP_ADMIN)

Documents

@component('components.button', ['id'=>'add_document','type'=>'add','submit'=>true, 'text' => 'Add Document', 'disabled'=>!$project->active]) @endcomponent
@endif @endslot @slot('after_body')
@component('components.datatable', ['vertical_borders'=>true]) @slot('thead') ID Name File Path Verificator Comment Status Delivery Due Is Required @if($phase==\App\PPAP\Document::PHASE_5) Recurrent Period @endif Active/Obsolete Responsible Creator @if ($user->ppap_role['role'] == Role::PPAP_ADMIN) Delete @endif @endslot @slot('tbody') @foreach($documents->sortBy('id') as $key => $document) {{$document->id}} {{$document->name}} @component('components.button', ['type'=>'download','btn_icon' => true, 'disabled'=>$document->file_path ? false : true, 'extra_class'=>'download-btn', 'title'=>'Download']) @endcomponent {{$document->status_id === \App\PPAP\Document::INTERIM_APPROVED || $document->status_id === \App\PPAP\Document::DECLINED ? $document->verificator_comment : ''}} {{$document->status_name}} {{$document->delivery_due_dmy}} @if ($user->ppap_role['role'] == Role::PPAP_ADMIN) @component('components.button', ['type'=>'edit','btn_icon' => true, 'extra_class'=>'edit_document_delivery_due']) @endcomponent @endif {{$document->is_required ? 'Yes' : 'No'}} @if ($user->ppap_role['role'] == Role::PPAP_ADMIN) @component('components.button', ['type'=>'edit','btn_icon' => true, 'extra_class'=>'edit_document_is_required']) @endcomponent @endif @if($phase==\App\PPAP\Document::PHASE_5) {{$document->period_name}} @if ($user->ppap_role['role'] == Role::PPAP_ADMIN) @component('components.button', ['type'=>'edit','btn_icon' => true, 'extra_class'=>'edit_document_recurrent_period']) @endcomponent @endif @endif {{$document->state_name}} @if ($user->ppap_role['role'] == Role::PPAP_ADMIN) @component('components.button', ['type'=>'edit','btn_icon' => true, 'extra_class'=>'edit_document_status']) @endcomponent @endif {{$document->responsible ? $document->responsible->full_name : ""}} @if ($user->ppap_role['role'] == Role::PPAP_ADMIN) @component('components.button', ['type'=>'edit','btn_icon' => true, 'extra_class'=>'edit_document_responsible']) @endcomponent @endif {{$document->creator ? $document->creator->full_name.' '.$document->created_at_dmy : ""}} @if ($user->ppap_role['role'] == Role::PPAP_ADMIN) @component('components.button', ['type'=>'delete','btn_icon' => true, 'disabled'=>$document->active, 'extra_class'=>'delete_document']) @endcomponent @endif @endforeach @endslot @endcomponent
@component('components.button', ['type'=>'delete', 'text'=>'Delete Project', 'disabled'=>$project->active, 'id'=>'delete_project_btn']) @endcomponent @component('components.button', ['type'=>'cancel', 'text'=>'Cancel', 'id'=>'back_project_btn']) @endcomponent
@endslot @endcomponent @endsection @section('app-scripts') @endsection