@extends('layouts.app') @section('title', 'Welcome') @section('content') @php $profile = optional($user->userprofile); $firstname = $profile->firstname ?? $user->name; @endphp {{-- Welcome banner --}}

Welcome back

{{ $firstname }}

Guest Member
{{-- decorative circles --}}
{{-- Profile summary --}}

Your Profile

@if($profile->avatar) @else
{{ strtoupper(substr($firstname, 0, 1)) }}
@endif

{{ $profile->firstname }} {{ $profile->lastname }}

{{ $user->email }}

@foreach([ ['Mobile', $user->mobile_no], ['Gender', ucfirst($profile->gender ?? '')], ['Date of Birth',$profile->date_of_birth ? date('d M Y', strtotime($profile->date_of_birth)) : null], ] as [$label, $value])
{{ $label }}
{{ $value ?: '—' }}
@endforeach
{{-- Church info --}}

Church

{{ optional($user->church)->name }}

{!! optional($user->church)->fulladdress() !!}

@foreach([ ['Membership Type', ucfirst($profile->membership_type ?? 'Guest')], ['Status', ucfirst($profile->status ?? 'Active')], ] as [$label, $value])
{{ $label }}
{{ $value ?: '—' }}
@endforeach
{{-- Church info --}}

Id Card

  Print
@include('member.idcard.idcard')
@endsection