<option value="{!! $helptopic->id !!}" <?php 
    if ($help_topic->id == $helptopic->id) {
        echo 'selected';
    }
    ?>
 >{!! $helptopic->topic !!}</option>
                                @endforeach
                                </select>
                                <spam id="error-help" style="display:none" class="help-block text-red">This is a required field</spam>
                            </div>
                        </div>
                        <div class="col-md-6">
                            <div class="form-group">
                                <label>{!! Lang::get('lang.ticket_source') !!}</label>
                                <?php 
    $ticket_sources = App\Model\helpdesk\Ticket\Ticket_source::all();
    ?>
                                <select class="form-control" name="ticket_source">
                                @foreach($ticket_sources as $ticketsource)
                                    <option value="{!! $ticketsource->id !!}" <?php 
    if ($tickets->source == $ticketsource->id) {
        echo "selected";
    }
    ?>
 >{!! $ticketsource->value !!}</option>
                                @endforeach 
                                </select>
                                <spam id="error-source" style="display:none" class="help-block text-red">This is a required field</spam>
                            </div>
                        </div>
                        <?php 
示例#2
0
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <!-- <link href="{{asset("downloads/bootstrap.min.css")}}" rel="stylesheet" type="text/css" /> -->
        <link href="{{asset("lb-faveo/dist/css/AdminLTE.min.css")}}" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <h2>
            <div class="logo"><b>Faveo</b>HELPDESK</div><hr>	
        </h2>

        <h4>{{$thread->title}}</h4><br/>

<?php 
$ticket_source = App\Model\helpdesk\Ticket\Ticket_source::where('id', '=', $tickets->source)->first();
$ticket_source = $ticket_source->value;
$user = App\User::where('id', '=', $tickets->user_id)->first();
?>
        <?php 
$response = App\Model\helpdesk\Ticket\Ticket_Thread::where('ticket_id', '=', $tickets->id)->get();
?>
        @foreach($response as $last)
        <?php 
$ResponseDate = $last->created_at;
?>
        @endforeach

        <?php 
$status = App\Model\helpdesk\Ticket\Ticket_Status::where('id', '=', $tickets->status)->first();
?>