@model Sevomin.Models.JobViewModel

<div class="table-responsive rtl">
    <table class="table table-bordered">
        <thead>
            <tr>
                <th>@Html.DisplayNameFor(m => m.JalaliCreateDate)</th>
                <th>@Html.DisplayNameFor(m => m.JalaliExpireDate)</th>
                <th>@Html.DisplayNameFor(m => m.ResumeType)</th>
                <th>@Html.DisplayNameFor(m => m.IsFullTime)</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>@Html.DisplayFor(m => m.JalaliCreateDate)</td>
                <td>@Html.DisplayFor(m => m.JalaliExpireDate)</td>
                <td>@Sevomin.Models.Helpers.StringEnum.GetStringValue((Sevomin.Models.Enums.ResumeTypes)Model.ResumeType)</td>
                <td>@(Model.IsFullTime ? "بله" : "خیر")</td>
            </tr>
        </tbody>
    </table>
    <table class="table table-stripped table-bordered">
        <thead>
            <tr>
                <th colspan="2">ویژگی</th>
                <th>میزان اهمیت</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var param in Model.Parameters)
            {
                if (!string.IsNullOrWhiteSpace(param.StringValue))
                { 
                <tr>
                    <th>@param.ParameterName</th>
                    <td>@(param.DisplayMethod == 4 ? param.ParameterValues.FirstOrDefault(v => v.Item1.ToString() == param.StringValue).Item2 : param.StringValue)</td>
                    <td>@Sevomin.Models.Helpers.StringEnum.GetStringValue((Sevomin.Models.Enums.MuSCoW)param.MoscowValue)</td>
                </tr>
                }
            }
        </tbody>
    </table>
</div>