AssetsAdm |
Contract Report |
{{--
{{ 'startdate='. $group['start_date'] }}
--}}
{{--
@if (!empty($group['start_date']))
From Date : {{format_date($group['start_date'])}}
@endif
|
@if (!empty($group['end_date']))
To Date : {{format_date($group['end_date'])}}
@endif
|
--}}
@php
$count = 0;
@endphp
@foreach ($group as $key => $value)
@if(!empty($value))
@if ($count % 2 == 0)
@endif
@if (@$key == 'company_id')
@php
$count++;
@endphp
Company :{{ @Company::find(@$group['company_id'], 'company_id')->name }}
|
@endif
@if (@$key == 'division_id')
@php
$count++;
@endphp
Division :{{ @Company::find(@$group['division_id'],'division_id')->name }}
|
@endif
@if (@$key == 'currentyear')
@php
$count++;
@endphp
Current Year :{{ @$group['currentyear'] }}
|
@endif
@if (@$key == 'month')
@php
$count++;
@endphp
{{-- Month :{{ @$group['month'] }} --}}
{{-- Month :{{ @group['month'] }} --}}
{{-- Month :{{ date("F", mktime(0, 0, 0, @group['month'], 1)) }} --}}
@php
$monthNum = @$group['month'];
$dateObj = DateTime::createFromFormat('!m', $monthNum);
$monthName = $dateObj->format('F');
@endphp
Month :{{ $monthName }}
|
@endif
@if (@$key == 'start_date')
@php
$count++;
@endphp
Start Date :{{ format_date(@$group['start_date']) }}
|
@endif
@if (@$key == 'end_date')
@php
$count++;
@endphp
End Date :{{ format_date(@$group['end_date']) }}
|
@endif
@if (@$key == 'asset_id')
@php
$count++;
@endphp
Asset :{{ @Assets::find(@$group['asset_id'], 'asset')->name }}
|
@endif
@if (@$key == 'service_company_id')
@php
$count++;
@endphp
Supplier :{{ @Supplier::find(@$group['service_company_id'], 'supplier')->name }}
|
@endif
@if ($count % 2 == 0)
@endif
@endif
@endforeach
Group By |
Active |
In Active |
Pending |
Total |
@forelse($contracts['available'] as $key=>$contract)
{{$contract->labels}} |
{{$contract->active}} |
{{$contract->inactive}} |
{{$contract->pending}} |
{{$contract->total}} |
@empty
@endif
@forelse($contracts['available'] as $key=>$contract)
{{$contract->labels}}:{{$contract->total}} ({{round(($contract->total/$contracts['labels'])*100,0)}}%) |
|
@empty
@endif
|
{{$contracts['labels']/4}} |
{{$contracts['labels']/2}} |
{{$contracts['labels']/2+$contracts['labels']/4}} |
{{$contracts['labels']}} |
|
@forelse(array_slice($contracts['all'], 0, 2) as $key=>$row)
@if($key == 00)
@endif
Contract No. |
ServiceProvider |
Asset |
Company |
Division |
Contract Date |
Start Date |
End Date |
Status |
@forelse($row as $key=>$inner_row)
{{@$inner_row['ref']}} |
{{@$inner_row['serviceproviders']['name']}} |
{{@$inner_row['asset']['name']}} |
{{@$inner_row['company']['name']}} |
{{@$inner_row['division']['name']}} |
{{@$inner_row['contract_date']}} |
{{@$inner_row['start_date']}} |
{{@$inner_row['end_date']}} |
{{@$inner_row['status']}} |
@empty
@endif
@empty
@endif