Beispiel #1
0
 public function __construct(Model $model, $base = 'client')
 {
     parent::__construct($model, $base);
     $this->breadcrumb2Icon = 'user-plus';
     $this->formLeftWidth = 2;
     $this->view->share();
 }
Beispiel #2
0
 public function __construct(Model $model, $base = 'staticpage')
 {
     parent::__construct($model, $base);
     $this->unsortables = array_merge($this->unsortables, ['parent']);
     $this->formLeftWidth = 2;
     $this->query = request()->all();
 }
Beispiel #3
0
 public function __construct(Model $model, $base = 'gallery')
 {
     parent::__construct($model, $base);
     $this->breadcrumb2Icon = 'image';
     $this->formLeftWidth = 2;
     $this->view->share();
 }
Beispiel #4
0
 public function __construct(Model $model, TeamMediaSocial $mediasocial, $base = 'team')
 {
     parent::__construct($model, $base);
     $this->mediasocial = $mediasocial;
     $this->formLeftWidth = 2;
     $this->socials = array_combine($mediasocial->socials(), array_map('title_case', $mediasocial->socials()));
     $this->breadcrumb2Icon = 'user-plus';
     $this->view->share();
 }
Beispiel #5
0
 public function __construct(Model $model, Category $category, Tag $tag, $base = 'article')
 {
     parent::__construct($model, $base);
     $this->unsortables = array_merge($this->unsortables, ['tag', 'category']);
     $this->category = $category;
     $this->tag = $tag;
     $this->formLeftWidth = 2;
     $this->breadcrumb2Icon = 'files-o';
     $this->view->share();
 }
Beispiel #6
0
 public function __construct(Model $model, ProjectCategory $category, Client $client, $base = 'project')
 {
     parent::__construct($model, $base);
     $this->unsortables = array_merge($this->unsortables, ['client', 'category']);
     $this->category = $category;
     $this->client = $client;
     $this->formLeftWidth = 2;
     $this->breadcrumb2Icon = 'files-o';
     $this->fields = array_merge($this->model->getFields(), ['category' => 'Category', 'client' => 'Client']);
     $this->view->share();
 }