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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,17 +1,36 @@
@extends('layouts.app') @extends('adminlte::layouts.app')
@section('content') @section('htmlheader_title')
<div class="container"> Main
<div class="row"> @endsection
<div class="col-md-10 col-md-offset-1">
<div class="panel panel-default"> @section('contentheader_title')
<div class="panel-heading">Welcome</div> Main
@endsection
<div class="panel-body"> @section('contentheader_description')
Your Application's Landing Page. @endsection
</div> @section('page_title')
</div> Main
</div> @endsection
</div>
</div> @section('main-content')
<div class="row">
@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>
</div>
@endsection @endsection

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>