@extends('layouts.customer') @section('content')

Gift Cards

@if ($message = Session::get('success'))

{{ $message }}

@endif
{{-- --}} {{-- --}} @if($cards) @php $i = 0; @endphp @foreach($cards as $card) {{-- --}} {{-- --}} @endforeach @else

No records found!

@endif
Sr NoSender email Sender phone Deliver Deliver Date Buyer email Buyer phone Buyer notify Message to Message from MessageCard TypeAmountBalance Last Used Created Action
{{ ++$i }}{{ $card->send_to_email }} {{ $card->send_to_phone }} {{ $card->send_to_deliver }} {{ $card->send_to_deliver_date }} {{ $card->purchaser_info_email }} {{ $card->purchaser_info_phone }} {{ $card->purchaser_info_notify }} {{ $card->personalized_message_to }} {{ $card->personalized_message_from }} {{ $card->personalized_message }} @if( $card->card_type == '1' ) {{ 'E-gift card' }} @endif @if( $card->card_type == '2' ) {{ 'Classic Card' }} @endif {{ $card->amount }} @if( $card->egift_card_total_amount && count($card->egift_card_total_amount) > 0 ) ${{ intval(round( $card->egift_card_total_amount->first()->total_amount )) }} @endif @if( $card->lastTransactionDate ) {{ date('M d, y | h:i A',strtotime($card->lastTransactionDate)) }} @else {{ 'N/A' }} @endif {{ date('M d, y | h:i A',strtotime($card->created_at)) }}
@endsection