@extends('frontend.amazy.layouts.app') @section('content')
@include('frontend.amazy.pages.profile.partials._menu')
@foreach ($gift_card_infos as $key => $gift_card_info) @php $amount = 0; if(!empty($gift_card_info->giftCard)){ $gift = DB::table('add_gift_cards')->where('digilat_gift_id',$gift_card_info->giftCard->id)->first(); if($gift) { $amount = $gift->gift_card_value; } } @endphp @endforeach
{{__('common.amount')}} {{__('common.name')}} {{__('common.qty')}} {{__('common.secret_code')}} {{__('customer_panel.is_used')}}
{{ single_price($amount) }} {{ textLimit($gift_card_info->giftCard->name,22) }} {{ getNumberTranslate($gift_card_info->qty) }} {{ $gift_card_info->secret_code }} @if ($gift_card_info->is_used == 1) {{ __('common.used') }} @else {{ __('common.redeem') }} @endif
@if($gift_card_infos->lastPage() > 1) @endif
@endsection @push('scripts') @endpush