Initial welcome page
This commit is contained in:
parent
a91ddbe66e
commit
f6b456aa3d
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -366,4 +368,4 @@ abstract class Catalog extends Model
|
||||
|
||||
return $o->get();
|
||||
}
|
||||
}
|
||||
}
|
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace App\Model;
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Person extends Model
|
||||
{
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Model;
|
||||
namespace App\Models;
|
||||
|
||||
use DB;
|
||||
|
||||
@ -227,4 +227,4 @@ class Photo extends Abstracted\Catalog
|
||||
{
|
||||
return sprintf('<img height="240" src="%s"></img>',url('/p/thumbnail/'.$this->id));
|
||||
}
|
||||
}
|
||||
}
|
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace App\Model;
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PhotoPerson extends Model
|
||||
{
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Model;
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
@ -12,4 +12,4 @@ class PhotoTag extends Model
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'photo_tag';
|
||||
}
|
||||
}
|
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace App\Model;
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Tag extends Model
|
||||
{
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Model;
|
||||
namespace App\Models;
|
||||
|
||||
use DB;
|
||||
|
||||
@ -174,4 +174,4 @@ class Video extends Abstracted\Catalog
|
||||
{
|
||||
return sprintf('<video width="320" height="240" src="%s" controls></video>',url('/v/view/'.$this->id));
|
||||
}
|
||||
}
|
||||
}
|
@ -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
|
||||
{
|
||||
|
@ -1,17 +1,36 @@
|
||||
@extends('layouts.app')
|
||||
@extends('adminlte::layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<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.
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@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">
|
||||
@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
|
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