<script type="text/template" id="appointmentsListTemplate">
    <input type="hidden" class="appointment-id" value="<%= id %>">
    <td><%= title %></td>
    <td>
        <% if(type === 1) { %>
            General Appointment
        <% } %>
        <% if(type === 2) { %>
            Accompanied Viewing
        <% } %>
        <% if(type === 3) { %>
            Valuation
        <% } %>
        <% if(type === 4) { %>
            Unaccompanied Viewing
        <% } %>
    </td>
    <td><%= start %></td>
    <td><%= end %></td>
    <td><%= location %></td>
    <td><%= contact ? contact.name : '' %></td>
    <td><%= listing ? listing.p_id : '' %></td>
    <td>
        <% if(appear_as === 1) { %>
        Busy
        <% } %>
        <% if(appear_as === 2) { %>
        Free
        <% } %>
    </td>
    <td>
        <button type="button" class="btn btn-primary edit-btn"><i class="fa fa-edit"></i> Edit</button>
        <button type="button" class="btn btn-danger delete-btn"><i class="fa fa-trash"></i> Delete</button>
    </td>
</script>
<?php /**PATH E:\xampp\htdocs\propco\resources\views/admin/appointments/appointmentsListTemplate.blade.php ENDPATH**/ ?>