This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
memberdb/resources/theme/backend/adminlte/new.blade.php

93 lines
3.9 KiB
PHP
Raw Normal View History

2017-08-05 23:53:57 +00:00
@extends('adminlte::layouts.app')
@section('htmlheader_title')
{{ trans('adminlte_lang::message.home') }}
@endsection
@section('contentheader_title')
New Contracts
@endsection
@section('contentheader_description')
{{ $ido->import_date->format('Y-m-d') }}
@endsection
@section('main-content')
@php
$data = collect();
@endphp
<div class="col-sm-11 col-md-offset-0">
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ $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 small" style="color: #000000;" id="table">
<thead>
<tr>
<th rowspan="1" colspan="4">{{ $name }}</th>
<th rowspan="2" class="text-right bg-primary">Entitled</th>
<th colspan="3" class="text-center" style="background-color: #5cb85c !important">Deployed</th>
<th rowspan="2" style="background-color: #d6d6c2 !important">Behind</th>
<th rowspan="2" class="text-right" style="background-color: #f0ad4e !important">Assign</th>
<th rowspan="2" class="text-right" style="background-color: #d9534f !important; color: white;">UnAssign</th>
</tr>
<tr>
<th>Start</th>
<th>Unit</th>
<th>Segment</th>
<th>Category</th>
<th class="text-right" style="background-color: #5cb85c !important">Actual</th>
<th style="background-color: #7cd87c !important">Ahead</th>
<th class="text-right" style="background-color: #0099e6 !important">Over</th>
</tr>
</thead>
<tbody>
@foreach ($scope->get() as $o)
@php
$filter = $o->category_summary($ido)->filter(function($item,$value) use ($co) { return $item['category_id'] == $co->id; });
if (! $e=$filter->sum('entitled')) continue;
@endphp
<tr>
<td>{{ $o->contract_start->format('Y-m-d') }}</td>
<td>{{ $o->account->imt->iot->name }}</td>
<td>{{ $o->account->imt->name }}</td>
<td><a href="{{ $next ? url('/'.$next.'/'.$co->id.'/'.$ido->id.'/'.$o->account->id) : '#' }}"> {{ $o->account->name }}</a></td>
<td class="text-right bg-primary" style="!important">{{ number_format($e,2) }}</td>
<td class="text-right" style="background-color: #5cb85c !important">{{ number_format($filter->sum('actual'),1) }}</td>
<td class="text-right" style="background-color: #7cd87c !important">{{ number_format($filter->sum('ahead'),1) }}</td>
<td class="text-right" style="background-color: #0099e6 !important">{{ number_format($filter->sum('over'),1) }}</td>
<td class="text-right" style="background-color: #d6d6c2 !important">{{ number_format($filter->sum('behind'),1) }}</td>
<td class="text-right" style="background-color: #f0ad4e !important">{{ number_format($filter->sum('assigned'),1) }}</td>
<td class="text-right" style="background-color: #d9534f !important; color: white;">{{ number_format($filter->sum('unassigned'),1) }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
@endsection
@section('page-scripts')
<script src="{{ url('/plugins/dataTables.bootstrap.min.js') }}"></script>
<script src="{{ url('/plugins/jquery.dataTables.js') }}"></script>
<link href="{{ url('/plugins/jquery.dataTables.min.css') }}" rel="stylesheet" type="text/css">
<link href="{{ url('/plugins/dataTables.bootstrap.css') }}" rel="stylesheet" type="text/css">
<script type="text/javascript">
$(document).ready(function() {
$("#table").DataTable({
"pageLength": 20,
});
});
</script>
@append