
<div class="mb-3 input-container">
    <label class="form-label">First Name</label>
    <input type="text" class="form-control" name="first_name" placeholder="" value="<?php if(isset($data['cl_first_name'])){echo $data['cl_first_name'];} ?>" />
    <div class="error-input"></div>
</div>

<div class="mb-3 input-container">
    <label class="form-label">Last Name</label>
    <input type="text" class="form-control" name="last_name" placeholder="" value="<?php if(isset($data['cl_last_name'])){echo $data['cl_last_name'];} ?>" />
    <div class="error-input"></div>
</div>


<div class="mb-3 input-container">
    <label class="form-label">Phone</label>
    <input type="text" class="form-control" name="phone" placeholder="" value="<?php if(isset($data['cl_phone'])){echo $data['cl_phone'];} ?>" />
    <div class="error-input"></div>
</div>
<div class="mb-3 input-container">
    <label class="form-label">Role (* only 1 chef, 1 bar user allowed)</label>
    <select type="text" class="form-control" name="type">
        <option value="">----Select----</option>

        <option value="manager" <?php if(isset($data['cl_type']) && $data['cl_type'] == 'manager'){echo 'selected';}?>>Manager</option>
        <option value="chef" <?php if(isset($data['cl_type']) && $data['cl_type'] == 'chef'){echo 'selected';}?>>Chef</option>
        <option value="bar" <?php if(isset($data['cl_type']) && $data['cl_type'] == 'bar'){echo 'selected';}?>>Bar</option>
        <option value="runner_head" <?php if(isset($data['cl_type']) && $data['cl_type'] == 'runner_head'){echo 'selected';}?>>Runner Head (Only one allowed)</option>
       
    </select>
    <div class="error-input"></div>
</div>

<div class="mb-3 input-container">
    <label class="form-label">Address</label>
    <textarea class="form-control" name="address" placeholder="" value="<?php if(isset($data['cl_address'])){echo $data['cl_address'];} ?>" ></textarea>
    <div class="error-input"></div>
</div>

<div class="mb-3 input-container">
    <label class="form-label">Email</label>
    <input type="text" class="form-control" name="email" placeholder="" value="<?php if(isset($data['cl_email'])){echo $data['cl_email'];} ?>" />
    <div class="error-input"></div>
</div>
<?php
if($templateType == 'add')
{
    ?>

<div class="mb-3 input-container">
    <label class="form-label">Password</label>
    <input type="password" class="form-control" name="password" placeholder="Password" />
    <div class="error-input"></div>
</div>
<?php
}
?>
<div class="col-md-12 botm-cont">
    <button type="submit" class="track-btn btn btn-primary">Submit</button>
</div>