@extends('app')

@section('content')
    <h1>All Applications</h1>
    <hr>
    <table class="table table-hover">
        <thead>
            <tr>
                <th>Name</th>
                <th>Applicant</th>
                <th>Judge Status</th>
                <th>Score</th>
                <th>Date Created</th>
                <th>Date Modified</th>
            </tr>
        </thead>

        <tbody>
            @foreach($applications as $application)
                <tr>
                    <td>
                        @if($application->status == 'new')
                            <a href="/applications/{{ $application->id }}">{{ $application->name }}</a>
                        @else
                            <a href="/applications/{{ $application->id }}/review">{{ $application->name }}</a>
                        @endif
                    </td>
                    <td>{{ $application->user->name }}</td>
                    <td>{{ $application->judge_status }}</td>
                    <td>{{ $application->objective_score }} / {{ $application->subjective_score }} / {{ $application->total_score }}</td>
                    <td>{{ $application->created_at->format('Y-m-d') }}</td>
                    <td>{{ $application->updated_at->format('Y-m-d') }}</td>
                </tr>
            @endforeach
        </tbody>
    </table>

@endsection

@extends('app')

@section('content')
    <h1>All Applications</h1>
    <hr>
    <table class="table table-hover">
        <thead>
            <tr>
                <th>Name</th>
                <th>Applicant</th>
                <th>Status</th>
                <th>Judge Status</th>
                <th>Score</th>
                <th>Date Created</th>
                <th>Date Modified</th>
            </tr>
        </thead>

        <tbody>
            @foreach($applications as $application)
                <tr>
                    <td>
                        @if($application->status == 'new')
                            <a href="/applications/{{ $application->id }}">{{ $application->name }}</a>
                        @else
                            <a href="/applications/{{ $application->id }}/review">{{ $application->name }}</a>
                        @endif
                    </td>
                    <td>{{ $application->user->name }}</td>
                    <td>{{ $application->status }}</td>
                    <td>{{ $application->judge_status }}</td>
                    <td>{{ $application->objective_score }} / {{ $application->subjective_score }} / {{ $application->total_score }}</td>
                    <td>{{ $application->created_at->format('Y-m-d') }}</td>
                    <td>{{ $application->updated_at->format('Y-m-d') }}</td>
                </tr>
            @endforeach
        </tbody>
    </table>

@endsection

Update app list view for application status
Update app list view for application status

Add the application status, not just the judged status. This
is important for the admin since they see unsubmitted applications.

Signed-off-by: Marc Jones <bb1304e98184a66f7e15848bfbd0ff1c09583089@gmail.com>
(cherry picked from commit 86195f70374a720e6f15e0ea8f0a965554b36296)
Signed-off-by: Marc Jones <bb1304e98184a66f7e15848bfbd0ff1c09583089@gmail.com>
