@extends('layouts.admin') @section('css') @endsection @section('admin')
| Name | Image | Validity | @if ($type != 'special-badge')Purchase Coin | @endifStatus | Action | ||
|---|---|---|---|---|---|---|---|
| {{ $gift->gift_name }} |
@if (!empty($gift->gift_file) && file_exists($gift->gift_file))
@php
$ext = strtolower(pathinfo($file, PATHINFO_EXTENSION));
@endphp
@if ($ext === 'svga')
@else
{{-- Regular raster/image --}}
@endif
|
@if ($gift->gift_validate->isNotEmpty()) {{-- Pluck the days, convert to array, and join with commas --}} {{ implode(', ', $gift->gift_validate->pluck('validate_days')->toArray()) }} Days @else {{ $gift->gift_validity }} Days @endif | @if ($type != 'special-badge')@if ($gift->gift_validate->isNotEmpty()) {{-- Pluck the coins, convert to array, and join with commas --}} {{ implode(', ', $gift->gift_validate->pluck('validate_coin')->toArray()) }} Coins @else {{ $gift->gift_purchase_coin }} Coins @endif | @endif {{--{{ $gift->gift_validity }} Days | @if ($type != 'special-badge'){{ $gift->gift_purchase_coin }} Coins | @endif --}}{{ $gift->is_active == 1 ? 'Active' : 'In-Active' }} |