@extends('layouts.shop') @section('title', 'My Gift Cards - Hair Niche By Shelly') @section('content')
@include('user.partials.sidebar')

Gift Cards

@if(session('success')) @endif @if(session('error')) @endif

Create a New Gift Card

@csrf
{{ config('app.currency', '₹') }}

Wallet Balance: {{ config('app.currency', '₹') }}{{ auth()->user()->wallet_balance }}

If specified, only this email can redeem the card.

Gift Card Rules

  • Validity: Gift cards are valid for {{ \App\Models\GeneralSetting::value('gift_card_expiry_days') ?? 365 }} days from the date of creation.
  • Usage: Can be used to purchase any item on our store, including sale items.
  • Wallet Deduction: Creating a gift card deducts the amount directly from your wallet balance.
  • Transferable: Unless locked to a specific recipient email, codes can be shared with anyone.
  • No Refunds: Once created, gift cards cannot be refunded back to the wallet.
@if(isset($receivedGiftCards) && $receivedGiftCards->count() > 0)

Received Gift Cards

@foreach($receivedGiftCards as $card)
Code: {{ $card->code }}

From: {{ $card->creator->name ?? 'Unknown' }} ({{ $card->creator->email ?? 'N/A' }})

Expires: {{ $card->expires_at->format('M d, Y') }}

{{ config('app.currency', '₹') }}{{ number_format($card->amount, 2) }}

{{ ucfirst($card->status) }}
@endforeach
@endif

My Created Gift Cards

@if($giftCards->count() > 0)
@foreach($giftCards as $card)
Code: {{ $card->code }}

Amount: {{ config('app.currency', '₹') }}{{ number_format($card->amount, 2) }}

To: {{ $card->recipient_email ?? 'Any' }}

Expires: {{ $card->expires_at->format('M d, Y') }}

{{ ucfirst($card->status) }}
@endforeach
@else

You haven't created any gift cards yet.

@endif
@endsection