<commit_before><?php

$showrounds = $ongoing->merge($upcoming);

?>

@extends('app')

@section('content')
    <h1>
        Your Dashboard
        <div class="pull-right" style="font-size:0.4em; margin-top: 1.4em;">User Level: <b>{{ ucfirst(Auth::user()->role) }}</b></div>
    </h1>
    <hr>

    @if($showrounds->count())
        <h2>Current Grant Rounds</h2>

        <table class="table table-hover">
            <thead>
                <tr>
                    <th>Name</th>
                    <th style="max-width:50%">Description</th>
                    <th>Status</th>
                    <th>Start Date</th>
                    <th>End Date</th>
                </tr>
            </thead>

            <tbody>
                @foreach($showrounds->sortBy('start_date') as $round)
                    <tr>
                        <td>{{ $round->name }}</td>
                        <td>{{ $round->description }}</td>
                        <td>{{ $round->status() }}</td>
                        <td>{{ $round->start_date }}</td><commit_msg>created apply buttons for each round<commit_after><?php

$showrounds = $ongoing->merge($upcoming);

?>

@extends('app')

@section('content')
    <h1>
        Your Dashboard
        <div class="pull-right" style="font-size:0.4em; margin-top: 1.4em;">User Level: <b>{{ ucfirst(Auth::user()->role) }}</b></div>
    </h1>
    <hr>

    @if($showrounds->count())
        <h2>Current Grant Rounds</h2>

        <table class="table table-hover">
            <thead>
                <tr>
                    <th>Name</th>
                    <th style="max-width:50%">Description</th>
                    <th>Status</th>
                    <th>Start Date</th>
                    <th>End Date</th>
                </tr>
            </thead>

            <tbody>
                @foreach($showrounds->sortBy('start_date') as $round)
                    <tr>
                        <td><p>{{ $round->name }}</p>
                            @if($ongoing->count() && Auth::user()->role == 'applicant')
                                 <a href="/applications/create" class="btn btn-primary">Apply for a Grant</a>
                            @endif
                        </td>
                        <td>{{ $round->description }}</td>
                        <td>{{ $round->status() }}</td>
                        <td>{{ $round->start_date }}</td>
{'fraction_non_alphanumeric': 0.18075313807531382, 'fraction_numerical': 0.008368200836820083, 'mean_word_length': 1.3395303326810175, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 95, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '128592', 'n_tokens_mistral': 745, 'n_tokens_neox': 684, 'n_words': 126}