@extends('layouts.admin') @section('admin')

Couple Management

@if($errors->any())
@endif
@foreach($couples as $svip) @php $gifts = $svip->gifts; @endphp @endforeach
Level Name Level Target Purchase Bind Coin Level Icon Gifts Level Validity (Days) Actions
{{$svip->level_name}} {{$svip->level_target}} {{$svip->purchase_bind_coin}} @if($svip->level_icon) @php $file = $svip->level_icon; @endphp
@if($file) @if(file_exists(public_path($file))) @php $ext = strtolower(pathinfo($file, PATHINFO_EXTENSION)); @endphp @if($ext === 'svga')
@else Level Icon @endif @else
N/A
@endif @else
N/A
@endif
@else
N/A
@endif
@if($gifts && $gifts->count() > 0)
@foreach($gifts as $gift) @php $file = $gift->gift_file; @endphp
@if($file) @if(file_exists(public_path($file))) @php $ext = strtolower(pathinfo($file, PATHINFO_EXTENSION)); @endphp @if($ext === 'svga')
@else {{ $gift->gift_type }} @endif @else
@endif @else
@endif {{ ucfirst($gift->gift_type) }} @if($gift->validity) {{ $gift->validity }} days @endif
@endforeach
@else N/A @endif
{{$svip->validity}}
@if($couples->hasPages())
{{ $couples->links() }}
@endif
@endsection