|
@@ -4,13 +4,10 @@ namespace App\Http\Controllers;
|
|
|
|
|
|
|
|
use App\Calendar;
|
|
use App\Calendar;
|
|
|
use App\CalendarGame;
|
|
use App\CalendarGame;
|
|
|
-use App\Category;
|
|
|
|
|
use App\Season;
|
|
use App\Season;
|
|
|
-use App\Group;
|
|
|
|
|
use App\Team;
|
|
use App\Team;
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Http\Request;
|
|
|
-use File;
|
|
|
|
|
-
|
|
|
|
|
|
|
+use Illuminate\Support\Facades\File;
|
|
|
class CalendarController extends Controller
|
|
class CalendarController extends Controller
|
|
|
{
|
|
{
|
|
|
|
|
|
|
@@ -20,10 +17,7 @@ class CalendarController extends Controller
|
|
|
|
|
|
|
|
public function index()
|
|
public function index()
|
|
|
{
|
|
{
|
|
|
- if (isset($_GET["all"]))
|
|
|
|
|
$calendars = Calendar::orderBy('position')->orderBy('name')->get(); //->paginate(50);
|
|
$calendars = Calendar::orderBy('position')->orderBy('name')->get(); //->paginate(50);
|
|
|
- else
|
|
|
|
|
- $calendars = Calendar::where('archived', null)->orderBy('position')->orderBy('name')->get(); //->paginate(50);
|
|
|
|
|
|
|
|
|
|
return view('calendars.index',compact('calendars'))
|
|
return view('calendars.index',compact('calendars'))
|
|
|
->with('i', (request()->input('page', 1) - 1) * 5);
|
|
->with('i', (request()->input('page', 1) - 1) * 5);
|