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

Activity Management

@if(session('success')) @endif
@foreach($activities as $activity) @php $file = $activity->image; @endphp @endforeach
Name Image Type Required Count Reward Coins Validity Status Action
{{$activity->name}} @if(!empty($activity->image) && file_exists($activity->image)) @php $ext = strtolower(pathinfo($file, PATHINFO_EXTENSION)); @endphp @if($ext === 'svga')
@else image @endif @else image @endif
@if($activity->activity_category == 'svip') SVIP: {{ $activity->svip->svip_level ?? $activity->svip_id }} @else @if($activity->activity_type == 'custom') {{ $activity->custom_user_role == 'other' ? $activity->custom_type_manual_name : ucfirst($activity->custom_user_role) }} @else {{ ucfirst($activity->activity_type) }} @endif @endif {{ $activity->required_count }} {{ $activity->reward_coins }} coins {{ $activity->validity_days }} days {{ $activity->is_active ? 'Active' : 'Inactive' }}
@if($activities->hasPages())
{{ $activities->links() }}
@endif
@endsection @section('js') @endsection