@use('App\Services\Date') @extends('reports::layouts.master') @section('title', __('reports::reports.cost_center')) @section('page-link')
| @foreach($data['selectedCostCenters'] as $costCenter) | {{($costCenter['code']?$costCenter['code'] . "-":"") . $costCenter['name_' . app()->getLocale()]}} | @endforeach
|---|---|
| {{$categoryName}} | @foreach($data['selectedCostCenters'] as $costCenter)@endforeach |
| {{$subCategoryName}} | @foreach($data['selectedCostCenters'] as $costCenter)@endforeach |
| {{ $account['code'] . ' - ' . $account['name'] }} | @foreach($data['selectedCostCenters'] as $costCenter){{ isset( $data['mainAccountsTotalValues'][$account['id']][$costCenter['id']] ) ? floatval($data['mainAccountsTotalValues'][$account['id']][$costCenter['id']]) < 0 ? "(" .number_format(floatval($data['mainAccountsTotalValues'][$account['id']][$costCenter['id']])* -1,2) .")" : number_format(floatval($data['mainAccountsTotalValues'][$account['id']][$costCenter['id']]),2) : 0.00 }} | @endforeach
| @lang('reports::reports.total cost center') {{$account['name']}} | @foreach($data['selectedCostCenters'] as $costCenter){{ isset( $data['mainAccountsTotalValuesSubAccountIncluded'][$account['id']][$costCenter['id']] ) ? floatval($data['mainAccountsTotalValuesSubAccountIncluded'][$account['id']][$costCenter['id']]) < 0 ? "(" .number_format( floatval( $data['mainAccountsTotalValuesSubAccountIncluded'][$account['id']][$costCenter['id']] )* -1,2) .")" : number_format(floatval( $data['mainAccountsTotalValuesSubAccountIncluded'][$account['id']][$costCenter['id']] ),2) : 0.00 }} | @endforeach
| @lang('reports::reports.total cost center') {{$subCategoryName}} | @foreach($data['selectedCostCenters'] as $costCenter){{ isset( $data['subCategoriesTotalValues'][$subCategoryName][$costCenter['id']] ) ? $data['subCategoriesTotalValues'][$subCategoryName][$costCenter['id']] < 0 ? "(" .number_format(floatval($data['subCategoriesTotalValues'][$subCategoryName][$costCenter['id']]) * -1 ,2) .")" : number_format(floatval($data['subCategoriesTotalValues'][$subCategoryName][$costCenter['id']]),2) : 0 }} | @endforeach
| @lang('reports::reports.total cost center') {{$categoryName}} | @foreach($data['selectedCostCenters'] as $costCenter){{ isset( $data['CategoriesTotalValues'][$categoryName][$costCenter['id']] ) ? $data['CategoriesTotalValues'][$categoryName][$costCenter['id']] < 0 ? "(" .number_format(floatval($data['CategoriesTotalValues'][$categoryName][$costCenter['id']] ) * -1 ,2) .")" : number_format(floatval($data['CategoriesTotalValues'][$categoryName][$costCenter['id']]),2) : 0 }} @endforeach |
| @lang('reports::reports.trial_balance.total') | @foreach($data['selectedCostCenters'] as $costCenter){{ isset( $data['totalCategoriesRecords'][$costCenter['id']] ) ? $data['totalCategoriesRecords'][$costCenter['id']] <= 0 ? "(" .number_format(floatval($data['totalCategoriesRecords'][$costCenter['id']] ) * -1 ,2) .")" : number_format(floatval($data['totalCategoriesRecords'][$costCenter['id']]),2) : 0 }} | @endforeach