{{ @$val->ref }} |
{{ @$val->created_at }} |
{{ @$val->work_due }} |
{{ @$val->category }} |
{{-- {{ htmlentities($val->request_type) }} | --}}
{{ $val->workorder_type }} |
{{ (@$val->workorder_type=="Internal")? @$val->technician->name:@$val->s_name->name }} |
{{ @$val->consumed_time }} |
{{ number_format($val->totalmaterialcost,$val->company->no_of_decimal_in_currency).' '.$val->company->currency }} |
{{-- {{ number_format($val->hrcost,$decimal_places) }} | --}}
{{ number_format(@$val->hrcost,$val->company->no_of_decimal_in_currency).' '.$val->company->currency }} |
@php
$total_material_cost += $val->totalmaterialcost;
$total_hr_cost += $val->hrcost;
if($val->consumed_time =='0')
$val->consumed_time = '0:0';
list ($hr, $min) = explode(':',$val->consumed_time);
$time += (((int)$hr) * 60 * 60) + (((int)$min) * 60);
@endphp
@empty
|
Total Consumed Time: {{ gmdate("H:i", $time) }} |
Total Material Cost: {{ number_format($total_material_cost,user('admin.web')->company->no_of_decimal_in_currency) }} |
Total HR Cost: {{ number_format($total_hr_cost,user('admin.web')->company->no_of_decimal_in_currency) }} |