<div class="mx-auto" style="max-width: 800px;">
    <div class="panel mb-0 rounded-0">
        <div class="panel-hdr">
            <h2>{$d->title}</h2>
        </div>
        <div class="panel-container">
            <div class="panel-content">
                <div class="row">


                    <div class="col-md-12">

                        <input type="hidden" id="task_id" name="task_id" value="{$d->id}">

                        {if $has_delete_permission}
                            <a href="javascript:void(0)" class="btn btn-danger c_delete" id="d_{$d->id}">{$_L['Delete']}</a>
                        {/if}
                        {if $has_edit_permission}
                            <a href="javascript:void(0)" class="btn btn-warning c_edit" id="e_{$d->id}">{$_L['Edit']}</a>
                        {/if}

                        <hr>



                        <div class="row">
                            <div class="col-md-6">
                                <h4>{$_L['Description']}</h4>
                                <hr>
                                {if $d->description eq ''}
                                    <p>{$_L['No Data Available']}</p>
                                {else}
                                    {$d->description}
                                {/if}
                            </div>
                            <div class="col-md-6 text-end">

                                <p><strong>{$_L['Due Date']}:</strong> {date( $config['df'], strtotime($d->due_date))}</p>
                                {if $contact}
                                    <p><strong>Related customer:</strong> <a href="{$_url}contacts/view/{$contact->id}">{$contact->account}</a></p>
                                {/if}

                                {if $ticket}
                                    <p><strong>Ticket:</strong> <a href="{$_url}tickets/admin/view/{$ticket->id}">{$ticket->tid}</a></p>
                                {/if}

                            </div>
                        </div>



                    </div>



                </div>
            </div>
        </div>
    </div>
</div>



