@extends('layouts.app')
@section('content')
    <div class="container-fluid mt-5">
        <div class="card">
            <div class="card-header">{{ __('Dashboard') }}</div>
            <div class="card-body">
                <div class="row">
                    @if($event)
                        @foreach($event as $event)

                            <div class="col-lg-4 col-md-6 col-sm-6">
                                <div class="cards cards-stats">
                                    <div class="cards-header" data-background-color="orange">
                                        <i class="fa fa-calendar-plus-o"></i>
                                    </div>
                                    <div class="cards-content">
                                        <p class="category">{{ $event->event_name }}</p>
                                        <h3 class="title">@if($event->event_status == 1) Active @else Inactive @endif</h3>
                                    </div>
                                    <div class="cards-footer">
                                        <div class="stats">
                                            <i class="material-icons text-danger">donut_small</i>
                                            <a href="/manage/{{$event->id}}">Lihat Tetapan Kempen</a>
                                        </div>
                                    </div>
                                </div>
                            </div>


                        @endforeach
                        @else
                            no event
                        @endif


















                
                    
                </div>
            </div>
            
        </div>
    </div>
@endsection
