@extends('layouts.adminapp') @section('content') @section('head',__('lng.Vehicle')) {{-- Property Show --}}

{{$Vehicle->title}}

Back

{{$Vehicle->vehicletype->title}}

{{$Vehicle->vehiclenumber}}

{{$Vehicle->chaisnumber}}

{{$Vehicle->lastreadingkm}}

@php $DTs=0; if($Vehicle->lastreadingdate) { $DTs = date("d-m-Y",strtotime($Vehicle->lastreadingdate)); } @endphp

{{$DTs}}

{{$Vehicle->nextservice_km}}

{{$Vehicle->narration}}

{{__('lng.Title')}}
{{__('lng.Value')}}
{{__('lng.Expiry')}}
{{__('lng.Action')}}

@if($VehicleDetails->count()) @foreach($DetailProperties as $DetailProperty) @php $exists = $VehicleDetailes->where('property_id', $DetailProperty->id)->where('vehicle_id', $Vehicle->id)->exists(); $currentVehicleDetails = $exists ? $VehicleDetailes->where('property_id', $DetailProperty->id)->where('vehicle_id', $Vehicle->id)->first() : null; @endphp
@csrf @if($exists) @method('patch') @endif
{{ $DetailProperty->title }}
@if($DetailProperty->type=='Month') @elseif($DetailProperty->type=='KM') @endif
@if($DetailProperty->type=='Month') @elseif($DetailProperty->type=='KM') @endif

@endforeach @else @foreach($DetailProperties as $DetailProperty)
@csrf
{{ $DetailProperty->title }}
@if($DetailProperty->type=='Month')
@elseif($DetailProperty->type=='KM')
@endif

@endforeach @endif
@endsection