Initial welcome page

This commit is contained in:
Deon George 2019-11-08 23:51:47 +11:00
parent a91ddbe66e
commit f6b456aa3d
10 changed files with 79 additions and 35 deletions

View File

@ -1,21 +1,23 @@
<?php
namespace App\Model\Abstracted;
namespace App\Models\Abstracted;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Schema;
use DB;
use App\Models\{Person,Tag};
abstract class Catalog extends Model
{
public function People()
{
return $this->belongsToMany('App\Model\Person');
return $this->belongsToMany(Person::class);
}
public function Tags()
{
return $this->belongsToMany('App\Model\Tag');
return $this->belongsToMany(Tag::class);
}
/**

View File

@ -1,6 +1,6 @@
<?php
namespace App\Model;
namespace App\Models;
use Illuminate\Database\Eloquent\Model;

View File

@ -1,6 +1,6 @@
<?php
namespace App\Model;
namespace App\Models;
use DB;

View File

@ -1,6 +1,6 @@
<?php
namespace App\Model;
namespace App\Models;
use Illuminate\Database\Eloquent\Model;

View File

@ -1,6 +1,6 @@
<?php
namespace App\Model;
namespace App\Models;
use Illuminate\Database\Eloquent\Model;

View File

@ -1,6 +1,6 @@
<?php
namespace App\Model;
namespace App\Models;
use Illuminate\Database\Eloquent\Model;

View File

@ -1,6 +1,6 @@
<?php
namespace App\Model;
namespace App\Models;
use DB;

View File

@ -5,10 +5,8 @@ namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Foundation\Bus\DispatchesJobs;
use App\Model\Photo;
use App\Jobs\PhotoMove;
use App\Model\Video;
use App\Jobs\VideoMove;
use App\Models\{Photo,Video};
use App\Jobs\{PhotoMove,VideoMove};
class AppServiceProvider extends ServiceProvider
{

View File

@ -1,15 +1,34 @@
@extends('layouts.app')
@extends('adminlte::layouts.app')
@section('content')
<div class="container">
@section('htmlheader_title')
Main
@endsection
@section('contentheader_title')
Main
@endsection
@section('contentheader_description')
@endsection
@section('page_title')
Main
@endsection
@section('main-content')
<div class="row">
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default">
<div class="panel-heading">Welcome</div>
<div class="panel-body">
Your Application's Landing Page.
@include('widgets.summary.boxes')
</div>
</div>
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-header">
<h3 class="card-title"></h3>
</div>
<!-- /.card-header -->
<div class="card-body">
</div>
</div>
</div>

View File

@ -0,0 +1,25 @@
<div class="col-12 col-sm-6 col-md-3">
<div class="info-box">
<span class="info-box-icon bg-info elevation-1"><i class="fa fa-camera"></i></span>
<div class="info-box-content">
<span class="info-box-text">Photos</span>
<span class="info-box-number">{{ \App\Models\Photo::count() }}</span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
</div>
<div class="col-12 col-sm-6 col-md-3">
<div class="info-box">
<span class="info-box-icon bg-info elevation-1"><i class="fa fa-video-camera"></i></span>
<div class="info-box-content">
<span class="info-box-text">Videos</span>
<span class="info-box-number">{{ \App\Models\Video::count() }}</span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
</div>