64 lines
2.8 KiB
PHP
64 lines
2.8 KiB
PHP
@extends('adminlte::layouts.app')
|
|
|
|
@section('htmlheader_title')
|
|
{{ trans('adminlte_lang::message.home') }}
|
|
@endsection
|
|
|
|
@section('contentheader_title')
|
|
Product Detail
|
|
@endsection
|
|
@section('contentheader_description')
|
|
{{ $ido->import_date->format('Y-m-d') }}
|
|
@endsection
|
|
|
|
@section('main-content')
|
|
<div class="col-sm-9 col-md-offset-0">
|
|
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ $po->name }}</h3>
|
|
<div class="box-tools pull-right">
|
|
<button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="Collapse">
|
|
<i class="fa fa-minus"></i></button>
|
|
<button type="button" class="btn btn-box-tool" data-widget="remove" data-toggle="tooltip" title="Remove">
|
|
<i class="fa fa-times"></i></button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="box-body no-padding">
|
|
<table width="100%" class="table table-striped table-bordered table-hover" style="color: #000000">
|
|
<tr>
|
|
<th> </td>
|
|
<th colspan="2" class="text-center bg-primary">Entitled</td>
|
|
<th colspan="3" class="text-center" style="background-color: #5cb85c">Deployment</td>
|
|
<th colspan="2" class="text-center" style="background-color: #d9534f; color: white;">Unassigned</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th class="text-right bg-primary">Qty</th>
|
|
<th class="text-right bg-primary">Value</th>
|
|
<th class="text-right" style="background-color: #5cb85c">Qty</th>
|
|
<th class="text-right" style="background-color: #5cb85c">Deployed</th>
|
|
<th class="text-right" style="background-color: #f0ad4e">Assigned</th>
|
|
<th class="text-right" style="background-color: #d9534f; color: white;">Qty</th>
|
|
<th class="text-right" style="background-color: #d9534f; color: white;">Unassigned</th>
|
|
</tr>
|
|
|
|
@foreach ($po->accounts($ido) as $o)
|
|
<tr>
|
|
<td><a href="{{ url('/account/'.$po->category_id().'/'.$ido->id.'/'.$o->account_id) }}">{{ $o->account_name }}</a></td>
|
|
<td class="text-right bg-primary">{{ $q=(isset($o->qty_entitled) ? $o->qty_entitled : 0) }}</td>
|
|
<td class="text-right bg-primary">J${{ number_format($e=(isset($o->entitled) ? $o->entitled : 0),3) }}m</td>
|
|
<td class="text-right" style="background-color: #5cb85c">{{ $r=(isset($o->qty_rate) ? $o->qty_rate : 0) }}</td>
|
|
<td class="text-right" style="background-color: #5cb85c">J${{ number_format($d=(isset($o->deployed) ? $o->deployed : 0),3) }}m</td>
|
|
<td class="text-right" style="background-color: #f0ad4e">J${{ number_format($a=(isset($o->assigned) ? $o->assigned : 0),3) }}m</td>
|
|
<td class="text-right" style="background-color: #d9534f; color: white;">{{ $q-$r }}</td>
|
|
<td class="text-right" style="background-color: #d9534f; color: white;">J${{ number_format(($e-$d-$a),3) }}m</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@endsection
|