-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/development'
- Loading branch information
Showing
5 changed files
with
62 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div {!! $attributes !!}> | ||
<div class="text-center"> | ||
{!! $value ? '<i class="fa fa-check"></i>' : '<i class="fa fa-minus"></i>' !!} {!! $append !!} | ||
</div> | ||
@if($small) | ||
<small class="clearfix">{!! $small !!}</small> | ||
@endif | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace SleepingOwl\Admin\Display\Column; | ||
|
||
class Boolean extends NamedColumn | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
protected $view = 'column.boolean'; | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
protected $isSearchable = false; | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
protected $orderable = false; | ||
|
||
/** | ||
* @return array | ||
*/ | ||
public function toArray() | ||
{ | ||
return parent::toArray() + [ | ||
'value' => $this->getModelValue(), | ||
'small' => $this->getModelSmallValue(), | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters