<?php
/**
 * @var \App\View\AppView $this
 * @var \App\Model\Entity\Category $category
 */
?>
<nav class="large-3 medium-4 columns" id="actions-sidebar">
    <ul class="side-nav">
        <li class="heading"><?= __('Actions') ?></li>
        <li><?= $this->Html->link(__('Edit Category'), ['action' => 'edit', $category->id]) ?> </li>
        <li><?= $this->Form->postLink(__('Delete Category'), ['action' => 'delete', $category->id], ['confirm' => __('Are you sure you want to delete # {0}?', $category->id)]) ?> </li>
        <li><?= $this->Html->link(__('List Category'), ['action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Category'), ['action' => 'add']) ?> </li>
        <li><?= $this->Html->link(__('List Parent Category'), ['controller' => 'Category', 'action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Parent Category'), ['controller' => 'Category', 'action' => 'add']) ?> </li>
        <li><?= $this->Html->link(__('List Child Category'), ['controller' => 'Category', 'action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Child Category'), ['controller' => 'Category', 'action' => 'add']) ?> </li>
        <li><?= $this->Html->link(__('List Category To Freelancer'), ['controller' => 'CategoryToFreelancer', 'action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Category To Freelancer'), ['controller' => 'CategoryToFreelancer', 'action' => 'add']) ?> </li>
        <li><?= $this->Html->link(__('List Essay Test'), ['controller' => 'EssayTest', 'action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Essay Test'), ['controller' => 'EssayTest', 'action' => 'add']) ?> </li>
        <li><?= $this->Html->link(__('List Exam Topics'), ['controller' => 'ExamTopics', 'action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Exam Topic'), ['controller' => 'ExamTopics', 'action' => 'add']) ?> </li>
        <li><?= $this->Html->link(__('List Freelancers'), ['controller' => 'Freelancers', 'action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Freelancer'), ['controller' => 'Freelancers', 'action' => 'add']) ?> </li>
        <li><?= $this->Html->link(__('List Projects'), ['controller' => 'Projects', 'action' => 'index']) ?> </li>
        <li><?= $this->Html->link(__('New Project'), ['controller' => 'Projects', 'action' => 'add']) ?> </li>
    </ul>
</nav>
<div class="category view large-9 medium-8 columns content">
    <h3><?= h($category->name) ?></h3>
    <table class="vertical-table">
        <tr>
            <th scope="row"><?= __('Name') ?></th>
            <td><?= h($category->name) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Parent Category') ?></th>
            <td><?= $category->has('parent_category') ? $this->Html->link($category->parent_category->name, ['controller' => 'Category', 'action' => 'view', $category->parent_category->id]) : '' ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Id') ?></th>
            <td><?= $this->Number->format($category->id) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Test Sorting') ?></th>
            <td><?= $this->Number->format($category->test_sorting) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('Status') ?></th>
            <td><?= $this->Number->format($category->status) ?></td>
        </tr>
        <tr>
            <th scope="row"><?= __('View') ?></th>
            <td><?= $this->Number->format($category->view) ?></td>
        </tr>
    </table>
    <div class="row">
        <h4><?= __('Test Policies') ?></h4>
        <?= $this->Text->autoParagraph(h($category->test_policies)); ?>
    </div>
    <div class="row">
        <h4><?= __('Payment Policy') ?></h4>
        <?= $this->Text->autoParagraph(h($category->payment_policy)); ?>
    </div>
    <div class="related">
        <h4><?= __('Related Category') ?></h4>
        <?php if (!empty($category->child_category)): ?>
        <table cellpadding="0" cellspacing="0">
            <tr>
                <th scope="col"><?= __('Id') ?></th>
                <th scope="col"><?= __('Name') ?></th>
                <th scope="col"><?= __('Parent Id') ?></th>
                <th scope="col"><?= __('Test Policies') ?></th>
                <th scope="col"><?= __('Test Sorting') ?></th>
                <th scope="col"><?= __('Status') ?></th>
                <th scope="col"><?= __('View') ?></th>
                <th scope="col"><?= __('Payment Policy') ?></th>
                <th scope="col" class="actions"><?= __('Actions') ?></th>
            </tr>
            <?php foreach ($category->child_category as $childCategory): ?>
            <tr>
                <td><?= h($childCategory->id) ?></td>
                <td><?= h($childCategory->name) ?></td>
                <td><?= h($childCategory->parent_id) ?></td>
                <td><?= h($childCategory->test_policies) ?></td>
                <td><?= h($childCategory->test_sorting) ?></td>
                <td><?= h($childCategory->status) ?></td>
                <td><?= h($childCategory->view) ?></td>
                <td><?= h($childCategory->payment_policy) ?></td>
                <td class="actions">
                    <?= $this->Html->link(__('View'), ['controller' => 'Category', 'action' => 'view', $childCategory->id]) ?>
                    <?= $this->Html->link(__('Edit'), ['controller' => 'Category', 'action' => 'edit', $childCategory->id]) ?>
                    <?= $this->Form->postLink(__('Delete'), ['controller' => 'Category', 'action' => 'delete', $childCategory->id], ['confirm' => __('Are you sure you want to delete # {0}?', $childCategory->id)]) ?>
                </td>
            </tr>
            <?php endforeach; ?>
        </table>
        <?php endif; ?>
    </div>
    <div class="related">
        <h4><?= __('Related Category To Freelancer') ?></h4>
        <?php if (!empty($category->category_to_freelancer)): ?>
        <table cellpadding="0" cellspacing="0">
            <tr>
                <th scope="col"><?= __('Id') ?></th>
                <th scope="col"><?= __('Category Id') ?></th>
                <th scope="col"><?= __('Freelancer Id') ?></th>
                <th scope="col"><?= __('Status') ?></th>
                <th scope="col"><?= __('Created') ?></th>
                <th scope="col"><?= __('Approve Date') ?></th>
                <th scope="col"><?= __('Rating') ?></th>
                <th scope="col" class="actions"><?= __('Actions') ?></th>
            </tr>
            <?php foreach ($category->category_to_freelancer as $categoryToFreelancer): ?>
            <tr>
                <td><?= h($categoryToFreelancer->id) ?></td>
                <td><?= h($categoryToFreelancer->category_id) ?></td>
                <td><?= h($categoryToFreelancer->freelancer_id) ?></td>
                <td><?= h($categoryToFreelancer->status) ?></td>
                <td><?= h($categoryToFreelancer->created) ?></td>
                <td><?= h($categoryToFreelancer->approve_date) ?></td>
                <td><?= h($categoryToFreelancer->rating) ?></td>
                <td class="actions">
                    <?= $this->Html->link(__('View'), ['controller' => 'CategoryToFreelancer', 'action' => 'view', $categoryToFreelancer->id]) ?>
                    <?= $this->Html->link(__('Edit'), ['controller' => 'CategoryToFreelancer', 'action' => 'edit', $categoryToFreelancer->id]) ?>
                    <?= $this->Form->postLink(__('Delete'), ['controller' => 'CategoryToFreelancer', 'action' => 'delete', $categoryToFreelancer->id], ['confirm' => __('Are you sure you want to delete # {0}?', $categoryToFreelancer->id)]) ?>
                </td>
            </tr>
            <?php endforeach; ?>
        </table>
        <?php endif; ?>
    </div>
    <div class="related">
        <h4><?= __('Related Essay Test') ?></h4>
        <?php if (!empty($category->essay_test)): ?>
        <table cellpadding="0" cellspacing="0">
            <tr>
                <th scope="col"><?= __('Id') ?></th>
                <th scope="col"><?= __('Topic') ?></th>
                <th scope="col"><?= __('Essay') ?></th>
                <th scope="col"><?= __('G Mistakes') ?></th>
                <th scope="col"><?= __('Freelancer Id') ?></th>
                <th scope="col"><?= __('Category Id') ?></th>
                <th scope="col"><?= __('Created') ?></th>
                <th scope="col"><?= __('Formatting') ?></th>
                <th scope="col"><?= __('Style') ?></th>
                <th scope="col"><?= __('Result') ?></th>
                <th scope="col"><?= __('View') ?></th>
                <th scope="col"><?= __('Remark') ?></th>
                <th scope="col"><?= __('Delete Status') ?></th>
                <th scope="col"><?= __('Delete By') ?></th>
                <th scope="col" class="actions"><?= __('Actions') ?></th>
            </tr>
            <?php foreach ($category->essay_test as $essayTest): ?>
            <tr>
                <td><?= h($essayTest->id) ?></td>
                <td><?= h($essayTest->topic) ?></td>
                <td><?= h($essayTest->essay) ?></td>
                <td><?= h($essayTest->g_mistakes) ?></td>
                <td><?= h($essayTest->freelancer_id) ?></td>
                <td><?= h($essayTest->category_id) ?></td>
                <td><?= h($essayTest->created) ?></td>
                <td><?= h($essayTest->formatting) ?></td>
                <td><?= h($essayTest->style) ?></td>
                <td><?= h($essayTest->result) ?></td>
                <td><?= h($essayTest->view) ?></td>
                <td><?= h($essayTest->remark) ?></td>
                <td><?= h($essayTest->delete_status) ?></td>
                <td><?= h($essayTest->delete_by) ?></td>
                <td class="actions">
                    <?= $this->Html->link(__('View'), ['controller' => 'EssayTest', 'action' => 'view', $essayTest->id]) ?>
                    <?= $this->Html->link(__('Edit'), ['controller' => 'EssayTest', 'action' => 'edit', $essayTest->id]) ?>
                    <?= $this->Form->postLink(__('Delete'), ['controller' => 'EssayTest', 'action' => 'delete', $essayTest->id], ['confirm' => __('Are you sure you want to delete # {0}?', $essayTest->id)]) ?>
                </td>
            </tr>
            <?php endforeach; ?>
        </table>
        <?php endif; ?>
    </div>
    <div class="related">
        <h4><?= __('Related Exam Topics') ?></h4>
        <?php if (!empty($category->exam_topics)): ?>
        <table cellpadding="0" cellspacing="0">
            <tr>
                <th scope="col"><?= __('Id') ?></th>
                <th scope="col"><?= __('Topic') ?></th>
                <th scope="col"><?= __('Subject Id') ?></th>
                <th scope="col"><?= __('Category Id') ?></th>
                <th scope="col"><?= __('Delete Status') ?></th>
                <th scope="col"><?= __('Delete By') ?></th>
                <th scope="col" class="actions"><?= __('Actions') ?></th>
            </tr>
            <?php foreach ($category->exam_topics as $examTopics): ?>
            <tr>
                <td><?= h($examTopics->id) ?></td>
                <td><?= h($examTopics->topic) ?></td>
                <td><?= h($examTopics->subject_id) ?></td>
                <td><?= h($examTopics->category_id) ?></td>
                <td><?= h($examTopics->delete_status) ?></td>
                <td><?= h($examTopics->delete_by) ?></td>
                <td class="actions">
                    <?= $this->Html->link(__('View'), ['controller' => 'ExamTopics', 'action' => 'view', $examTopics->id]) ?>
                    <?= $this->Html->link(__('Edit'), ['controller' => 'ExamTopics', 'action' => 'edit', $examTopics->id]) ?>
                    <?= $this->Form->postLink(__('Delete'), ['controller' => 'ExamTopics', 'action' => 'delete', $examTopics->id], ['confirm' => __('Are you sure you want to delete # {0}?', $examTopics->id)]) ?>
                </td>
            </tr>
            <?php endforeach; ?>
        </table>
        <?php endif; ?>
    </div>
    <div class="related">
        <h4><?= __('Related Freelancers') ?></h4>
        <?php if (!empty($category->freelancers)): ?>
        <table cellpadding="0" cellspacing="0">
            <tr>
                <th scope="col"><?= __('Id') ?></th>
                <th scope="col"><?= __('Reg Stage') ?></th>
                <th scope="col"><?= __('Name') ?></th>
                <th scope="col"><?= __('Email') ?></th>
                <th scope="col"><?= __('Mobile') ?></th>
                <th scope="col"><?= __('Password') ?></th>
                <th scope="col"><?= __('Plain Password') ?></th>
                <th scope="col"><?= __('Google Id') ?></th>
                <th scope="col"><?= __('Facebook Id') ?></th>
                <th scope="col"><?= __('Skyp Id') ?></th>
                <th scope="col"><?= __('Country') ?></th>
                <th scope="col"><?= __('State') ?></th>
                <th scope="col"><?= __('City') ?></th>
                <th scope="col"><?= __('Pin Code') ?></th>
                <th scope="col"><?= __('Address') ?></th>
                <th scope="col"><?= __('Time Zone') ?></th>
                <th scope="col"><?= __('Address Proof') ?></th>
                <th scope="col"><?= __('Language') ?></th>
                <th scope="col"><?= __('Group Work Status') ?></th>
                <th scope="col"><?= __('Experience') ?></th>
                <th scope="col"><?= __('Category Id') ?></th>
                <th scope="col"><?= __('Experience Status') ?></th>
                <th scope="col"><?= __('Degree') ?></th>
                <th scope="col"><?= __('Proficient') ?></th>
                <th scope="col"><?= __('Paypal') ?></th>
                <th scope="col"><?= __('Paypal Status') ?></th>
                <th scope="col"><?= __('Status') ?></th>
                <th scope="col"><?= __('Email Verify') ?></th>
                <th scope="col"><?= __('Mobile Verify') ?></th>
                <th scope="col"><?= __('Created') ?></th>
                <th scope="col"><?= __('Modifed') ?></th>
                <th scope="col"><?= __('Token') ?></th>
                <th scope="col"><?= __('Rating') ?></th>
                <th scope="col"><?= __('Image') ?></th>
                <th scope="col"><?= __('Profile Percentage') ?></th>
                <th scope="col"><?= __('Ifsc') ?></th>
                <th scope="col"><?= __('Ac No') ?></th>
                <th scope="col"><?= __('Bank Name') ?></th>
                <th scope="col"><?= __('Upi') ?></th>
                <th scope="col"><?= __('Primary Payment') ?></th>
                <th scope="col"><?= __('Pan Card') ?></th>
                <th scope="col"><?= __('Cheque') ?></th>
                <th scope="col"><?= __('View') ?></th>
                <th scope="col"><?= __('Pan') ?></th>
                <th scope="col"><?= __('Approve Date') ?></th>
                <th scope="col"><?= __('Approve Alert') ?></th>
                <th scope="col"><?= __('Last Login') ?></th>
                <th scope="col"><?= __('Login Source') ?></th>
                <th scope="col"><?= __('Delete Status') ?></th>
                <th scope="col"><?= __('Delete By') ?></th>
                <th scope="col" class="actions"><?= __('Actions') ?></th>
            </tr>
            <?php foreach ($category->freelancers as $freelancers): ?>
            <tr>
                <td><?= h($freelancers->id) ?></td>
                <td><?= h($freelancers->reg_stage) ?></td>
                <td><?= h($freelancers->name) ?></td>
                <td><?= h($freelancers->email) ?></td>
                <td><?= h($freelancers->mobile) ?></td>
                <td><?= h($freelancers->password) ?></td>
                <td><?= h($freelancers->plain_password) ?></td>
                <td><?= h($freelancers->google_id) ?></td>
                <td><?= h($freelancers->facebook_id) ?></td>
                <td><?= h($freelancers->skyp_id) ?></td>
                <td><?= h($freelancers->country) ?></td>
                <td><?= h($freelancers->state) ?></td>
                <td><?= h($freelancers->city) ?></td>
                <td><?= h($freelancers->pin_code) ?></td>
                <td><?= h($freelancers->address) ?></td>
                <td><?= h($freelancers->time_zone) ?></td>
                <td><?= h($freelancers->address_proof) ?></td>
                <td><?= h($freelancers->language) ?></td>
                <td><?= h($freelancers->group_work_status) ?></td>
                <td><?= h($freelancers->experience) ?></td>
                <td><?= h($freelancers->category_id) ?></td>
                <td><?= h($freelancers->experience_status) ?></td>
                <td><?= h($freelancers->degree) ?></td>
                <td><?= h($freelancers->proficient) ?></td>
                <td><?= h($freelancers->paypal) ?></td>
                <td><?= h($freelancers->paypal_status) ?></td>
                <td><?= h($freelancers->status) ?></td>
                <td><?= h($freelancers->email_verify) ?></td>
                <td><?= h($freelancers->mobile_verify) ?></td>
                <td><?= h($freelancers->created) ?></td>
                <td><?= h($freelancers->modifed) ?></td>
                <td><?= h($freelancers->token) ?></td>
                <td><?= h($freelancers->rating) ?></td>
                <td><?= h($freelancers->image) ?></td>
                <td><?= h($freelancers->profile_percentage) ?></td>
                <td><?= h($freelancers->ifsc) ?></td>
                <td><?= h($freelancers->ac_no) ?></td>
                <td><?= h($freelancers->bank_name) ?></td>
                <td><?= h($freelancers->upi) ?></td>
                <td><?= h($freelancers->primary_payment) ?></td>
                <td><?= h($freelancers->pan_card) ?></td>
                <td><?= h($freelancers->cheque) ?></td>
                <td><?= h($freelancers->view) ?></td>
                <td><?= h($freelancers->pan) ?></td>
                <td><?= h($freelancers->approve_date) ?></td>
                <td><?= h($freelancers->approve_alert) ?></td>
                <td><?= h($freelancers->last_login) ?></td>
                <td><?= h($freelancers->login_source) ?></td>
                <td><?= h($freelancers->delete_status) ?></td>
                <td><?= h($freelancers->delete_by) ?></td>
                <td class="actions">
                    <?= $this->Html->link(__('View'), ['controller' => 'Freelancers', 'action' => 'view', $freelancers->id]) ?>
                    <?= $this->Html->link(__('Edit'), ['controller' => 'Freelancers', 'action' => 'edit', $freelancers->id]) ?>
                    <?= $this->Form->postLink(__('Delete'), ['controller' => 'Freelancers', 'action' => 'delete', $freelancers->id], ['confirm' => __('Are you sure you want to delete # {0}?', $freelancers->id)]) ?>
                </td>
            </tr>
            <?php endforeach; ?>
        </table>
        <?php endif; ?>
    </div>
    <div class="related">
        <h4><?= __('Related Projects') ?></h4>
        <?php if (!empty($category->projects)): ?>
        <table cellpadding="0" cellspacing="0">
            <tr>
                <th scope="col"><?= __('Id') ?></th>
                <th scope="col"><?= __('Topic') ?></th>
                <th scope="col"><?= __('Service') ?></th>
                <th scope="col"><?= __('Category Id') ?></th>
                <th scope="col"><?= __('Subject') ?></th>
                <th scope="col"><?= __('Pages') ?></th>
                <th scope="col"><?= __('Words') ?></th>
                <th scope="col"><?= __('Price') ?></th>
                <th scope="col"><?= __('Order Id') ?></th>
                <th scope="col"><?= __('Description') ?></th>
                <th scope="col"><?= __('Delivery Policy') ?></th>
                <th scope="col"><?= __('Modification Policy') ?></th>
                <th scope="col"><?= __('Payment Policy') ?></th>
                <th scope="col"><?= __('Website') ?></th>
                <th scope="col"><?= __('Order Status') ?></th>
                <th scope="col"><?= __('Deadline Date') ?></th>
                <th scope="col"><?= __('Bid Expiry Date') ?></th>
                <th scope="col"><?= __('Language') ?></th>
                <th scope="col"><?= __('Created') ?></th>
                <th scope="col"><?= __('File Data') ?></th>
                <th scope="col"><?= __('Modified') ?></th>
                <th scope="col"><?= __('Order Code') ?></th>
                <th scope="col"><?= __('Experience Level') ?></th>
                <th scope="col"><?= __('Status') ?></th>
                <th scope="col"><?= __('Freelancer Id') ?></th>
                <th scope="col"><?= __('Delete Status') ?></th>
                <th scope="col"><?= __('Delete By') ?></th>
                <th scope="col"><?= __('Allotted Date') ?></th>
                <th scope="col"><?= __('Ratings') ?></th>
                <th scope="col"><?= __('Pay Status') ?></th>
                <th scope="col"><?= __('Allotment Remark') ?></th>
                <th scope="col"><?= __('View') ?></th>
                <th scope="col"><?= __('Finishing Date') ?></th>
                <th scope="col" class="actions"><?= __('Actions') ?></th>
            </tr>
            <?php foreach ($category->projects as $projects): ?>
            <tr>
                <td><?= h($projects->id) ?></td>
                <td><?= h($projects->topic) ?></td>
                <td><?= h($projects->service) ?></td>
                <td><?= h($projects->category_id) ?></td>
                <td><?= h($projects->subject) ?></td>
                <td><?= h($projects->pages) ?></td>
                <td><?= h($projects->words) ?></td>
                <td><?= h($projects->price) ?></td>
                <td><?= h($projects->order_id) ?></td>
                <td><?= h($projects->description) ?></td>
                <td><?= h($projects->delivery_policy) ?></td>
                <td><?= h($projects->modification_policy) ?></td>
                <td><?= h($projects->payment_policy) ?></td>
                <td><?= h($projects->website) ?></td>
                <td><?= h($projects->order_status) ?></td>
                <td><?= h($projects->deadline_date) ?></td>
                <td><?= h($projects->bid_expiry_date) ?></td>
                <td><?= h($projects->language) ?></td>
                <td><?= h($projects->created) ?></td>
                <td><?= h($projects->file_data) ?></td>
                <td><?= h($projects->modified) ?></td>
                <td><?= h($projects->order_code) ?></td>
                <td><?= h($projects->experience_level) ?></td>
                <td><?= h($projects->status) ?></td>
                <td><?= h($projects->freelancer_id) ?></td>
                <td><?= h($projects->delete_status) ?></td>
                <td><?= h($projects->delete_by) ?></td>
                <td><?= h($projects->allotted_date) ?></td>
                <td><?= h($projects->ratings) ?></td>
                <td><?= h($projects->pay_status) ?></td>
                <td><?= h($projects->allotment_remark) ?></td>
                <td><?= h($projects->view) ?></td>
                <td><?= h($projects->finishing_date) ?></td>
                <td class="actions">
                    <?= $this->Html->link(__('View'), ['controller' => 'Projects', 'action' => 'view', $projects->id]) ?>
                    <?= $this->Html->link(__('Edit'), ['controller' => 'Projects', 'action' => 'edit', $projects->id]) ?>
                    <?= $this->Form->postLink(__('Delete'), ['controller' => 'Projects', 'action' => 'delete', $projects->id], ['confirm' => __('Are you sure you want to delete # {0}?', $projects->id)]) ?>
                </td>
            </tr>
            <?php endforeach; ?>
        </table>
        <?php endif; ?>
    </div>
</div>
