@lang('products::cost_center.Cost Center Hierarchy')
-
-
@foreach($costCenterHierarchy as $key => $parentCostCenter)
-
@if($parentCostCenter->id != $costCenter->id) {{$parentCostCenter->code .' '. $parentCostCenter->name}} @else {{$parentCostCenter->code .' '. $parentCostCenter->name}} @endif
@endforeach
-
@lang('products::cost_center.List Name'): {{$costCenter->name}}
@if($parent)@lang('products::cost_center.Parent Center'): {{$parent->name}}
@endif@lang('products::cost_center.Code'): {{$costCenter->code}}
@if($parent)@lang('products::cost_center.Parent Center Code'): {{$parent->code}}
@endif @if($costCenter->physical_address)@lang('products::cost_center.physical_address'): {{$costCenter->physical_address}}
@endif @if($costCenter->custom_fields)@php $customFields = json_decode($costCenter->custom_fields, true) @endphp
{{ __('purchases::purchase_bills.additional_fields') }}
@lang('products::cost_center.Transactions')
| @lang('products::cost_center.Date') | @lang('products::cost_center.Id') | @lang('products::product.Type') |
|---|---|---|
| {{ $transaction['creation_date'] }} | {{ $transaction['reference'] }} | {{ $transaction['transaction'] }} |
@lang('products::cost_center.Activity Log')
| @lang('products::cost_center.Date') | @lang('products::cost_center.username') | @lang('products::cost_center.Action') | @lang('products::cost_center.Details') |
|---|---|---|---|
| {{ $row->formatDateTime($row->created_at) }} | {{$row->user->uname}} | {{ trans($row->event) }} |
@if($row->event!='created')
@foreach($row->new_values as $key => $change)
@if($key != 'updated_at')
@if($key == 'name_en')
{{__('products::cost_center.name_en') . ' '. __('products::cost_center.changed to') .' '.$change}} @elseif($key == 'name_ar') {{__('products::cost_center.name_ar') . ' '. __('products::cost_center.changed to') .' '.$change}} @endif @endif @endforeach @endif |