@extends('admin::curd.preview') @section('heading') @stop @section('title') @stop @section('breadcrumb') @stop @section('entry') @stop @section('tools') @stop @section('content')
Excel {{-- --}}

Depreciation Ref : {{ $asset_depreciation->ref }}

Depreciation Type : {{ $asset_depreciation->category }}

Status : {{ $asset_depreciation->status }}

@if (@$asset_depreciation->status == 'Posted')

Voucher No : {{ $asset_depreciation->voucher_number }}

Posted Date : {{ @date('d M , Y', strtotime($asset_depreciation->posted_date)) }}

@endif

Amount : {{ $asset_depreciation->total_amount }}

Total Asset Count : {{ $asset_depreciation->asset_count }}

@if ($asset_depreciation->include_cost_center) @endif {{-- --}} @forelse($ledgers as $key => $val) @if ($asset_depreciation->include_cost_center) @endif {{-- --}} {{-- --}} @empty @endif @if ($sum > 0) @if ($asset_depreciation->include_cost_center) @else @endif {{-- --}} @endif

Ledgers

Sr Asset GroupCost Center Sub Cost CenterStart Date End Date Total Asset Depreciation Type Debit Account Credit Account AmountUser
{{ @$key + 1 }} {{ $val->group->name }}{{ @$val->cost_center->name }} {{ @$val->subcost_center->name }}{{ @date('d M , Y', strtotime($val->start_date)) }} {{ @date('d M , Y', strtotime($val->end_date)) }} {{ $val->total_asset }}{{ @$val->group->depreciation_type }}{{ $val->group->depreciation_type }} {{ $val->debit_account }} {{ $val->credit_account }} {{ $val->amount ?: '-' }}{{ $val->user->name }}
No Ledger
Total Total{{ $sum ? number_format($sum, 2, '.', '') : '-' }}{!! $val->user->name !!}
@stop