@extends('layouts.default')
@section('title', 'User Details')
@section('content')
@if ($errors->any())
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@if (session()->has('message'))
{{ session()->get('message') }}
@endif
- User Details
- Goal Details
- Savings Details
{{-- user details tab --}}
{{-- goal details tab --}}
@if ( ! $details['goal_details']->isEmpty() )
@foreach ($details['goal_details'] as $goal)
@endforeach
@else
@endif
{{-- savings details tab --}}
{{--
Goal Name |
Saving Note |
Saving Amount |
Saving Type |
Saving Date |
@if ( ! $details['savings_details']->isEmpty() )
@foreach ($details['savings_details'] as $savings)
{{ $savings->gl_name }}
|
{{ $savings->sv_note }}
|
{{ $savings->sv_amount }}
|
{{ $savings->sv_type }}
|
@php
$date = new DateTime($savings->sv_date);
@endphp
{{ $date->format('d-m-Y') }}
|
@endforeach
@else
Data Not Found... |
@endif
--}}
@php
$count = count($details['savings_details']);
@endphp
@if ( ! $details['savings_details']->isEmpty() )
@php $i = 0; @endphp
@foreach ( $details['savings_details'] as $savings )
@php
$i++;
if ( $i % 2 == 0 ) {
$position = 'timeline-item-right';
$bg_class = 'bg-success';
$txt_class = 'text-warning';
} else {
$position = 'timeline-item-left';
$bg_class = 'bg-danger';
$txt_class = 'text-dark';
}
@endphp
@php
$date = new DateTime($savings->updated_at);
@endphp
{{ $date->format('d-m-Y H:i:s A') }}
@endforeach
@else
Timeline isn't available!
@endif
@endsection
@section('pagespecificscripts')
@endsection