@extends('layout.app') @section('title') Collateral @endsection @section('pagetitle') Collateral @endsection @section('content')
@include('includes.errors') @include('includes.success')
@foreach($data as $key) @endforeach
Collateral Type Name Customer Loan Code Value Status Date Action
{{ucwords($key->collateraltype->name)}} {{ ucwords($key->name) }} {{$key->customer->first_name}} {{$key->customer->last_name}} {{!empty($key->loan) ? $key->loan->loan_code : "N/A" }} {{ number_format($key->value,2) }} {{str_replace("_"," ",$key->status)}} {{ date("d M, Y",strtotime($key->date)) }}
@endsection @section('scripts') @endsection