Initial welcome page
This commit is contained in:
parent
a91ddbe66e
commit
f6b456aa3d
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Model;
|
namespace App\Models;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Model;
|
namespace App\Models;
|
||||||
|
|
||||||
use DB;
|
use DB;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Model;
|
namespace App\Models;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Model;
|
namespace App\Models;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Model;
|
namespace App\Models;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Model;
|
namespace App\Models;
|
||||||
|
|
||||||
use DB;
|
use DB;
|
||||||
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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
|
25
resources/views/widgets/summary/boxes.blade.php
Normal file
25
resources/views/widgets/summary/boxes.blade.php
Normal 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>
|
Loading…
Reference in New Issue
Block a user