classes/Models/Traits/Encodable.php
public function adminColEncodeStatus()
    {
        if (!$encode = $this->encoding()) {
            return '<span class="label">Pending</span>';
        }
        switch ($encode->status) {
            case 'pending':
                return '<span class="label">'.ucfirst($encode->status).'</span>';

            case 'error':
            case 'cancelled':
                return '<span class="label label-important">'.ucfirst($encode->status).'</span>';

            case 'queued':
            case 'processing':
                return '<span class="label label-info">'.ucfirst($encode->status).'</span>';

            case 'complete':
                return '<span class="label label-success">'.ucfirst($encode->status).'</span>';
        }
    }
public function adminColEncodeStatus()
    {
        if (!$encode = $this->encoding()) {
            return '<span class="label">Pending</span>';
        }
        switch ($encode->status) {
            case 'pending':
                return '<span class="label">'.ucfirst($encode->status).'</span>';

            case 'error':
            case 'cancelled':
                return '<span class="label label-important">'.ucfirst($encode->status).'</span>';

            case 'queued':
            case 'processing':
                return '<span class="label label-info">'.ucfirst($encode->status).'</span>';

            case 'complete':
                return '<span class="label label-success">'.ucfirst($encode->status).'</span>';
        }
    }
public function adminColEncodeStatus ( ) { if ( ! $ encode = $ this -> encoding ( ) ) { return '<span class="label">Pending</span>' ; } switch ( $ encode -> status ) { case 'pending' : return '<span class="label">' . ucfirst ( $ encode -> status ) . '</span>' ; case 'error' : case 'cancelled' : return '<span class="label label-important">' . ucfirst ( $ encode -> status ) . '</span>' ; case 'queued' : case 'processing' : return '<span class="label label-info">' . ucfirst ( $ encode -> status ) . '</span>' ; case 'complete' : return '<span class="label label-success">' . ucfirst ( $ encode -> status ) . '</span>' ; } }
A utitliy function to create status badges for Decoy listings

@return string HTML
A utitliy function to create status badges for Decoy listings