@extends('adminpanel.default.master') @section('title', 'Challenge List') @section('content')

Challenge List|{{ $data->total() }} Total

@if(session()->has('success'))
{{ session('success') }}
@endif @if($errors->any())

{{$errors->first()}}

@endif
@if(count($data)>0) @foreach ($data as $key=>$d) @endforeach @else @endif
No Challenge Name Start Date End Date Goal Friends
{{ ($data->currentpage()-1)*$data->perpage()+$key+1 }} {{ $d->challengeName }} {{ $d->startDate}} {{ $d->endDate}} {{ $d->goal}} Challenger List
No Data found
{{ $data->render() }}

Showing {{ $data->firstItem() }} - {{ $data->lastItem() }} of {{ $data->total() }}

@endsection