taxes controller
This commit is contained in:
@@ -45,17 +45,17 @@ class TaxesController extends Controller
|
|||||||
|
|
||||||
$industrys[] = [
|
$industrys[] = [
|
||||||
'date' => $date['start']->toFormattedDateString(),
|
'date' => $date['start']->toFormattedDateString(),
|
||||||
'tax' => number_format($tHelper->GetIndustryGross($date['start'], $date['end']), 2, ".", ","),
|
'gross' => number_format($tHelper->GetIndustryGross($date['start'], $date['end']), 2, ".", ","),
|
||||||
];
|
];
|
||||||
|
|
||||||
$reprocessings[] = [
|
$reprocessings[] = [
|
||||||
'date' => $date['start']->toFormattedDateString(),
|
'date' => $date['start']->toFormattedDateString(),
|
||||||
'tax' => number_format($tHelper->GetReprocessingGross($date['start'], $date['end']), 2, ".", ","),
|
'gross' => number_format($tHelper->GetReprocessingGross($date['start'], $date['end']), 2, ".", ","),
|
||||||
];
|
];
|
||||||
|
|
||||||
$offices[] = [
|
$offices[] = [
|
||||||
'date' => $date['start']->toFormattedDateString(),
|
'date' => $date['start']->toFormattedDateString(),
|
||||||
'tax' => number_format($tHelper->GetOfficeGross($date['start'], $date['end']), 2, ".", ","),
|
'gross' => number_format($tHelper->GetOfficeGross($date['start'], $date['end']), 2, ".", ","),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -64,6 +64,5 @@ class TaxesController extends Controller
|
|||||||
->with('industrys', $industrys)
|
->with('industrys', $industrys)
|
||||||
->with('reprocessings', $reprocessings)
|
->with('reprocessings', $reprocessings)
|
||||||
->with('offices', $offices);
|
->with('offices', $offices);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
@foreach($pis as $pi)
|
@foreach($pis as $pi)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $pi['date'] }}</td>
|
<td>{{ $pi['date'] }}</td>
|
||||||
<td>{{ $pi['tax'] }}</td>
|
<td>{{ $pi['gross'] }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
@foreach($offices as $office)
|
@foreach($offices as $office)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $office['date'] }}</td>
|
<td>{{ $office['date'] }}</td>
|
||||||
<td>{{ $office['tax'] }}</td>
|
<td>{{ $office['gross'] }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
@foreach($industrys as $industry)
|
@foreach($industrys as $industry)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $industry['date'] }}</td>
|
<td>{{ $industry['date'] }}</td>
|
||||||
<td>{{ $industry['tax'] }}</td>
|
<td>{{ $industry['gross'] }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
@@ -83,7 +83,7 @@
|
|||||||
@foreach($reprocessings as $reprocessing)
|
@foreach($reprocessings as $reprocessing)
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ $reprocessing['date'] }}</td>
|
<td>{{ $reprocessing['date'] }}</td>
|
||||||
<td>{{ $reprocessing['tax'] }}</td>
|
<td>{{ $reprocessing['gross'] }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user