@can('reports.'.strtolower(str_replace(' ', '-', (\Modules\Reports\Enums\ReportsEnum::DATA_MAPPING[\Modules\Reports\Enums\ReportsEnum::ACCOUNT_SUMMARY]['name']))).'.view')
@endcan
@can('reports.'.strtolower(str_replace(' ', '-', (\Modules\Reports\Enums\ReportsEnum::DATA_MAPPING[\Modules\Reports\Enums\ReportsEnum::ACCOUNT_STATEMENT]['name']))).'.view')
@endcan
@can('reports.'.strtolower(str_replace(' ', '-', (\Modules\Reports\Enums\ReportsEnum::DATA_MAPPING[\Modules\Reports\Enums\ReportsEnum::ASSETS]['name']))).'.view')
@endcan
- {{__('accounting::assets.Id')}}
-
{{$asset->id}}
- {{__('accounting::assets.Name')}}
-
{{$asset->name}}
- {{__('accounting::assets.Main Account')}}
- {{($asset->type == 'new') ? __('accounting::assets.Asset Cost') : __('accounting::assets.asset_book_value')}}
-
{{number_format($asset->buying_cost,2,".",",")}}
- {{__('products::cost_center.Cost Center')}}
-
{{ $asset->costCenter ? (app()->getLocale() == 'ar' ? $asset->costCenter->name_ar : $asset->costCenter->name_en) : __('products::cost_center.main center') }}
@if($asset->type == 'new')
- {{__('purchases::purchase_bills.Supplier')}}
-
{{ $asset->supplier->name ?? '' }}
- {{__('accounting::assets.vat_option')}}
-
{{ $asset->tax_id ? $asset->tax->name : __('No Default Tax Rate') }}
- {{__('accounting::assets.total_amount')}}
-
{{number_format($asset->buying_cost +( $asset->vat_amount ?? 0) ,2,".",",")}}
@endif
- {{($asset->type == 'new') ? __('accounting::assets.Asset Date') : __('accounting::assets.Adding Date')}}
-
{{$asset->formatDate($asset->buying_date)}}
@if($asset->type == 'new')
- {{__('accounting::assets.Buying Account')}}
- @endif
- {{__('accounting::assets.Total Depreciation')}}
-
{{number_format($asset->total_depreciation,2,".",",")}}
- {{__('accounting::assets.Total Capitalization')}}
-
{{number_format($asset->total_capitalization,2,".",",")}}
- {{__('accounting::assets.Current Value')}}
-
{{number_format($asset->current_value,2,".",",")}}
- {{__('accounting::assets.Depreciation Method')}}
-
{{__('accounting::assets.'.$asset->depreciation_method)}}
@if($asset->depreciation_method !=='off')
- {{__('accounting::assets.Main Depreciation Account')}} @if($asset->depreciation_account !== null)
- @endif @endif
{{__('accounting::assets.Current Value')}}
{{ number_format($asset->current_value,2,".",",")}}
{!! __('settings::currencies.'.$currency) !!}
{{__('accounting::assets.Total Depreciation')}}
{{ number_format($asset->total_depreciation,2,".",",")}}
{!! __('settings::currencies.'.$currency) !!}
{{__('accounting::assets.Total Capitalization')}}
{{ number_format($asset->total_capitalization,2,".",",") }}
{!! __('settings::currencies.'.$currency) !!}
@lang('accounting::assets.Journal Entries')
| @lang('accounting::assets.Entry ID') | @lang('accounting::assets.Date') | @lang('accounting::assets.Description') | @lang('accounting::assets.Amount') | |
|---|---|---|---|---|
| {{$record->journal_entry_id}} | {{$record->formatDate($record->journal_date)}} | {{$record->description}} | @if($record->transaction_type !== $record->account->default_transaction_type)({{number_format($record->value, 2, '.', ',')}}) | @else{{number_format($record->value, 2, '.', ',')}} | @endif
@lang('accounting::assets.Depreciation history')
| @lang('accounting::assets.Date') | @lang('accounting::assets.Cost Account') | @lang('accounting::assets.Added By') | @lang('accounting::assets.Depreciation Amount') | @lang('accounting::assets.Balance') |
|---|---|---|---|---|
| {{$data->formatDate($data->depreciation_date)}} | {{$data->costAccount->name}} | @if($data->added_by == null) @lang('accounting::assets.System') @elseif($data->added_by == auth()->user()->id) @lang('accounting::assets.You') @else {{$data->user->uname}} @endif | {{number_format($data->depreciation_amount,2,".",",")}} | {{number_format($data->current_value,2,".",",")}} |
@lang('accounting::assets.Capitalization history')
| @lang('accounting::assets.Date') | @lang('accounting::assets.Cash Account') | @lang('accounting::assets.Added By') | @lang('accounting::assets.Capitalization Amount') | @lang('accounting::assets.Balance') | @lang('Actions') |
|---|---|---|---|---|---|
| {{$data->formatDate($data->capitalization_date)}} | {{$data->cashAccount->name}} | {{-- TODO: Migrate this logic to the model --}} @if($data->added_by == null) @lang('accounting::assets.System') @elseif($data->added_by == auth()->user()->id) @lang('accounting::assets.You') @else {{$data->user->uname}} @endif | {{number_format($data->capitalization_amount,2,".",",")}} | {{number_format($data->current_value,2,".",",")}} |
@lang('accounting::assets.Activity Log')
| @lang('accounting::assets.Date') | @lang('accounting::assets.Username') | @lang('accounting::assets.Action') | @lang('accounting::assets.Details') |
|---|---|---|---|
| {{$row->formatDateTime($row->created_at)}} | @if($row->user_id == null) @lang('accounting::assets.System') @else {{$row->user->uname}} @endif | {{ trans($row->event) }} |
@if($row->event!='created')
@foreach($row->new_values as $key => $change)
@if($key != 'updated_at')
@if($key == 'name_en')
{{__('accounting::assets.name_en') . ' '. __('accounting::assets.changed to') .' '.$change}} @elseif($key == 'name_ar') {{__('accounting::assets.name_ar') . ' '. __('accounting::assets.changed to') .' '.$change}} @elseif($key == 'total_depreciation') {{__('accounting::assets.Total Depreciation') . ' '. __('accounting::assets.changed to') .' '.number_format($change)}} @elseif($key == 'total_capitalization') {{__('accounting::assets.Total Capitalization') . ' '. __('accounting::assets.changed to') .' '.number_format($change)}} @elseif($key == 'current_value') {{__('accounting::assets.Current Value') . ' '. __('accounting::assets.changed to') .' '.number_format($change)}} @endif @endif @endforeach @endif |
| {{$item->formatDate($item->created_at)}} | @if($item->user_id == null) @lang('accounting::assets.System') @else {{$item->user->uname}} @endif | {{ trans($item->event) }} |
@if($item->event ='created')
@foreach($item->new_values as $key => $change)
@if($key == 'depreciation_amount')
{{__('accounting::assets.Depreciate the asset') . ' '. __('accounting::assets.Depreciation Amount') .' = '.number_format($change)}} @elseif($key == 'current_value') {{__('accounting::assets.Current Value') . ' = '.number_format($change)}} @endif @endforeach @endif |
| {{$item->formatDate($item->created_at)}} | @if($item->user_id == null) @lang('accounting::assets.System') @else {{$item->user->uname}} @endif | {{ trans($item->event) }} |
@if($item->event ='created')
@foreach($item->new_values as $key => $change)
@if($key == 'capitalization_amount')
{{__('accounting::assets.Capitalize the asset') . ' '. __('accounting::assets.Capitalization Amount') .' = '.number_format($change)}} @elseif($key == 'current_value') {{__('accounting::assets.Current Value') . ' = '.number_format($change)}} @endif @endforeach @endif |
| {{$item->formatDate($item->created_at)}} | @if($item->user_id == null) @lang('accounting::assets.System') @else {{$item->user->uname}} @endif | {{ trans($item->event) }} |
@if($item->event ='created')
@foreach($item->new_values as $key => $change)
@if($key == 'selling_value')
{{__('accounting::assets.Selling the asset')}} {{__('accounting::assets.Selling Amount') .' = '.number_format($change)}} @endif @endforeach @endif |
@forelse ($asset->attachments as $attachment)
@empty
@lang('purchases::purchase_bills.there_is_no_attachments')
@endforelse