99 lines
5.2 KiB
PHP
99 lines
5.2 KiB
PHP
@extends('portal::layouts.customer')
|
|
@section('title', $project->name)
|
|
@section('content')
|
|
<section class="portal-page-header"><h1>{{ $project->name }}</h1></section>
|
|
<section class="content">
|
|
<div class="box box-primary">
|
|
<div class="box-body">
|
|
<p><strong>@lang('portal::lang.status'):</strong> {{ $project->status ?? '-' }}</p>
|
|
@if($project->description)<p>{{ $project->description }}</p>@endif
|
|
@if($project->tasks->count())
|
|
<h4>@lang('project::lang.tasks')</h4>
|
|
<table class="table table-bordered">
|
|
<thead><tr><th>@lang('project::lang.task')</th><th>@lang('portal::lang.status')</th><th>@lang('project::lang.due_date')</th></tr></thead>
|
|
<tbody>
|
|
@foreach($project->tasks as $task)
|
|
<tr><td>{{ $task->subject }}</td><td>{{ $task->status }}</td><td>@format_date($task->due_date)</td></tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
<div class="box box-primary">
|
|
<div class="box-header"><h3 class="box-title">@lang('portal::lang.process_overview')</h3></div>
|
|
<div class="box-body portal-hub-links">
|
|
<span class="portal-hub-link" style="cursor:default;"><i class="fas fa-stream"></i><span>{{ $productionLines->count() }} @lang('portal::lang.production_lines')</span></span>
|
|
<span class="portal-hub-link" style="cursor:default;"><i class="fas fa-cogs"></i><span>{{ $equipment->count() }} @lang('portal::lang.my_equipment')</span></span>
|
|
<span class="portal-hub-link" style="cursor:default;"><i class="fas fa-calendar-alt"></i><span>{{ $schedules->count() }} @lang('portal::lang.periodic_services')</span></span>
|
|
<span class="portal-hub-link" style="cursor:default;"><i class="fas fa-wrench"></i><span>{{ $workOrders->count() }} @lang('portal::lang.work_orders')</span></span>
|
|
</div>
|
|
</div>
|
|
|
|
@if($productionLines->count())
|
|
<div class="box box-primary">
|
|
<div class="box-header"><h3 class="box-title">@lang('portal::lang.production_lines')</h3></div>
|
|
<div class="box-body table-responsive">
|
|
<table class="table table-bordered table-striped">
|
|
<thead><tr><th>@lang('maintenance::lang.name')</th><th>@lang('portal::lang.equipment_count')</th><th></th></tr></thead>
|
|
<tbody>
|
|
@foreach($productionLines as $line)
|
|
<tr>
|
|
<td>{{ $line->name }}</td>
|
|
<td>{{ $line->equipment_count }}</td>
|
|
<td><a href="{{ action([\Modules\Portal\Http\Controllers\Customer\ProductionLineController::class, 'show'], [$line->id]) }}" class="btn btn-xs btn-info">@lang('portal::lang.view_details')</a></td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
|
|
@if($equipment->count())
|
|
<div class="box box-primary">
|
|
<div class="box-header"><h3 class="box-title">@lang('portal::lang.my_equipment')</h3></div>
|
|
<div class="box-body table-responsive">
|
|
<table class="table table-bordered table-striped">
|
|
<thead><tr><th>@lang('maintenance::lang.name')</th><th>@lang('portal::lang.linked_line')</th><th>@lang('portal::lang.health_status')</th><th></th></tr></thead>
|
|
<tbody>
|
|
@foreach($equipment as $eq)
|
|
<tr>
|
|
<td>{{ $eq->name }}</td>
|
|
<td>{{ $eq->productionLine->name ?? '-' }}</td>
|
|
<td>{{ $eq->health_percentage ? $eq->health_percentage.'%' : '-' }}</td>
|
|
<td><a href="{{ action([\Modules\Portal\Http\Controllers\Customer\EquipmentController::class, 'show'], [$eq->id]) }}" class="btn btn-xs btn-info">@lang('portal::lang.view_details')</a></td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
|
|
@include('portal::partials.process_schedules', ['schedules' => $schedules])
|
|
@include('portal::partials.process_work_orders', ['workOrders' => $workOrders])
|
|
|
|
@if($missions->count())
|
|
<div class="box box-primary">
|
|
<div class="box-header"><h3 class="box-title">@lang('portal::lang.field_missions')</h3></div>
|
|
<div class="box-body table-responsive">
|
|
<table class="table table-bordered table-striped">
|
|
<thead><tr><th>@lang('portal::lang.mission_number')</th><th>@lang('portal::lang.status')</th><th></th></tr></thead>
|
|
<tbody>
|
|
@foreach($missions as $mission)
|
|
<tr>
|
|
<td>{{ $mission->mission_number ?? $mission->id }}</td>
|
|
<td>{{ $mission->status }}</td>
|
|
<td><a href="{{ action([\Modules\Portal\Http\Controllers\Customer\FieldMissionController::class, 'show'], [$mission->id]) }}" class="btn btn-xs btn-info">@lang('portal::lang.view_details')</a></td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
</section>
|
|
@endsection
|