@extends('dining.layouts.dining-member') @section('title', 'Dashboard - The LaLiT Dining') @section('content')
@php $extraData = isset($membershipUser['extra_data']) ? (is_string($membershipUser['extra_data']) ? json_decode($membershipUser['extra_data'], true) : $membershipUser['extra_data']) : []; $salutation = $extraData['salutation'] ?? ''; // Capitalize salutation properly (MR -> Mr, MS -> Ms, etc.) $salutation = $salutation ? ucfirst(strtolower($salutation)) : ''; // Capitalize name properly $name = $membershipUser['name'] ?? 'Member'; $name = ucwords(strtolower($name)); @endphp

Welcome to The LaLiT Dining, {{ $salutation ? $salutation . ' ' : '' }}{{ $name }}

Blue Membership Card
{{ $membershipUser['membership_number'] ?? '' }}
YOUR E-CARD
Membership Number {{ $membershipUser['membership_number'] ?? '' }}

Complimentary Vouchers

    @if(isset($membershipUser['complimentary_vouchers']) && count($membershipUser['complimentary_vouchers']) > 0) @foreach($membershipUser['complimentary_vouchers'] as $voucher) @if(isset($voucher['product']['name']))
  • • {{ $voucher['product']['name'] }}
  • @endif @endforeach @else
  • No complimentary vouchers available
  • @endif

Discounted Vouchers

maximum usage 10 times in a month

    @if(isset($membershipUser['discounted_vouchers']) && count($membershipUser['discounted_vouchers']) > 0) @foreach($membershipUser['discounted_vouchers'] as $voucher) @if(isset($voucher['product']['name']))
  • • {{ $voucher['product']['name'] }}
  • @endif @endforeach @else
  • No discounted vouchers available
  • @endif
@if(!$hasSubscription) @include('dining.modals.subscription-modal') @endif @endsection