35 lines
2.3 KiB
PHP
35 lines
2.3 KiB
PHP
@extends('layouts.app')
|
|
@section('content')
|
|
@include('industrialengineering::layouts.nav')
|
|
<section class="content-header"><h1>{{ $unit->serial_number }}</h1></section>
|
|
<section class="content">
|
|
<div class="row">
|
|
<div class="col-md-7"><div class="box box-primary"><div class="box-header"><h3 class="box-title">قطعات ساخت واقعی (As-Built)</h3></div><div class="box-body">
|
|
<table class="table table-bordered"><thead><tr><th>@lang('industrialengineering::lang.position')</th><th>برچسب</th><th>@lang('industrialengineering::lang.serial_number')</th><th>برند</th><th>گارانتی</th></tr></thead><tbody>
|
|
@foreach($unit->components as $c)
|
|
<tr>
|
|
<td>{{ $c->position_code }}</td>
|
|
<td>{{ $c->component_label }}</td>
|
|
<td>{{ $c->serial_number }}</td>
|
|
<td>{{ $c->brand }}</td>
|
|
<td>@include('industrialengineering::partials.jalali_date', ['date' => $c->warranty_expires_at])</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody></table>
|
|
</div></div></div>
|
|
<div class="col-md-5"><div class="box box-info"><div class="box-header"><h3 class="box-title">@lang('industrialengineering::lang.add') قطعه</h3></div><div class="box-body">
|
|
{!! Form::open(['url'=>action([\Modules\IndustrialEngineering\Http\Controllers\SerializedUnitController::class,'addComponent'],$unit->id)]) !!}
|
|
<div class="form-group">{!! Form::text('component_label',null,['class'=>'form-control','placeholder'=>'برچسب','required']) !!}</div>
|
|
<div class="form-group">{!! Form::text('position_code',null,['class'=>'form-control','placeholder'=>__('industrialengineering::lang.position')]) !!}</div>
|
|
<div class="form-group">{!! Form::text('serial_number',null,['class'=>'form-control','placeholder'=>__('industrialengineering::lang.serial_number')]) !!}</div>
|
|
<div class="form-group">{!! Form::text('brand',null,['class'=>'form-control','placeholder'=>'برند']) !!}</div>
|
|
<button class="btn btn-primary btn-sm">@lang('industrialengineering::lang.add')</button>
|
|
{!! Form::close() !!}
|
|
@if($unit->build_status!=='completed')
|
|
<form method="POST" action="{{ action([\Modules\IndustrialEngineering\Http\Controllers\SerializedUnitController::class,'completeBuild'],$unit->id) }}">@csrf<button class="btn btn-success btn-sm" style="margin-top:10px">@lang('industrialengineering::lang.complete_build')</button></form>
|
|
@endif
|
|
</div></div></div>
|
|
</div>
|
|
</section>
|
|
@endsection
|