@extends('fixed_asset.report.disposal_report.disposal_report') @section('report_content') @php($i = 1) @foreach ($report as $v_report) {{ $i++ }} @if ($v_report->category){{ $v_report->category->name_eng }}@else

Not Found

@endif {{ $v_report->fa_code }} @if ($v_report->product){{ $v_report->product->name_eng }}@else

Not Found

@endif {{ $v_report->quantity }} @if (!empty($v_report->invoice->acuired_date)){{ $v_report->invoice->acuired_date }} @else

Not Found

@endif @if (!empty($v_report->invoice->insuarnce_date)){{ $v_report->invoice->insuarnce_date }} @else

Not Found

@endif {{ time_difference($v_report->warranty_from, $v_report->warranty_to) }} {{ $v_report->total_amount_without_vat }} {{ time_difference($v_report->warranty_from, $v_report->transection ? $v_report->transection->end_date : 0) }} {{ $v_report->depreciation->sum('amount') }} {{ $v_report->adding->sum('amount') - $v_report->adding->sum('adjustmentOut') }} @if ($v_report->invoice->vendor){{ $v_report->invoice->vendor->name_eng }}@else

Not Found

@endif @endforeach @endsection