@extends('layouts.simple.master') @section('title', 'Default') @section('css') @endsection @section('style') @endsection @section('breadcrumb-title')

Profile

@endsection @section('breadcrumb-items') @endsection @section('content') @php $showBtn = 0; $hasLevelOne = false; $hasLevelTwo = false; $level = 0; @endphp

My Profile

image)) src="{{ asset('public/storage/uploads/'.$user->image) }}" @else src="{{ asset('assets/dummy_person.jpg') }}" @endif >
{{$user->fname ." ".$user->lname}}
Name :
{{$user->fname ." ".$user->lname}}
Email :
{{$user->email}}
Contact Number :
{{$user->phone_number}}
Country :
{{$user->country}}
Address :
{{$user->address}}
Registered On :
{{ optional($user->created_at)->format('j M Y g:i a') ?? 'N/A' }}
Last Login :
{{ \Carbon\Carbon::parse($user->last_login)->format('j M Y g:i a') ?? 'N/A' }}
@csrf

Edit Profile

@if (strtolower(Request::segment(1)) === 'client')

Uploaded Documents @if ($pdf->IsEmpty()) @php $showBtn = 1; @endphp @endif @if (!empty($pdf)) @php $sortedpdf = $pdf->sortBy('created_at'); @endphp @foreach ($sortedpdf as $row) @php if ($row->level == 1) { if($row->status == 9){ $level = 0; $showBtn = 1; }else{ $showBtn = 0; } if($row->status == 8){ $hasLevelOne = 1; } }else{ $level = 0; $showBtn = 1; } @endphp @endforeach @endif @if (!empty($pdf)) @foreach ($sortedpdf as $row) @php if($hasLevelOne == 1 && $hasLevelTwo != 1){ $level = 1; $showBtn = 1; if ($row->level == 2) { if($row->status == 9){ $level = 1; $showBtn = 1; }else{ $hasLevelTwo = 1; $level = 1; $showBtn = 0; } } }else{ $level = 0; } @endphp @endforeach @endif @if (!empty($showBtn)) @endif

@if (!empty($pdf)) @php $i = 0; @endphp @foreach ($pdf as $row) @endforeach @endif
# Document Level Status Uploaded On
1 @if ($row->doc_type == 1) ID Card @elseif($row->doc_type == 2) Driving License @elseif($row->doc_type ==3) Passport @elseif($row->doc_type == 4) Utility Bills @elseif($row->doc_type == 5) Bank Statment @endif {{ optional($row->created_at)->format('j M Y g:i a') ?? 'N/A' }}
@endif
@endsection @section('script') @endsection