<tr class="p-0">
  <td class="p-0">
    <table class="m-0" style="width: 100%">
      <tr class="p-0">
        <td class="text-center pt-4 pb-0" style="width: 40%">1ere</td>
        <td class="p-0" style="width: 60%">
          <table class="m-0" style="width: 100%">
            <tr>
              <td class="text-center py-1" style="width: 100%">A</td>
            </tr>
            <tr>
              <td class="text-center py-1" style="width: 100%">C</td>
            </tr>
            <tr>
              <td class="text-center py-1" style="width: 100%">D</td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </td>
  <td class="p-0">
    <table class="m-0" style="width: 100%">
      <tr class="p-0">
        <td class="p-0">
          <table class="m-0" style="width: 100%">
            <tr>
              <td class="text-center py-1">{{ $premA[9] < 10 ? '0'.$premA[9]:$premA[9] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premC[9] < 10 ? '0'.$premC[9]:$premC[9] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premD[9] < 10 ? '0'.$premD[9]:$premD[9] }}</td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </td>
  <td class="p-0">
    <table class="m-0" style="width: 100%">
      <tr>
        <td class="text-center p-0" style="width: 30%">
          <table style="width: 100%">
            <tr>
              <td class="text-center py-1">{{ $premA[0] < 10 ? '0'.$premA[0]:$premA[0] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premC[0] < 10 ? '0'.$premC[0]:$premC[0] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premD[0] < 10 ? '0'.$premD[0]:$premD[0] }}</td>
            </tr>
          </table>
        </td>
        <td class="text-center p-0" style="width: 30%">
          <table style="width: 100%">
            <tr>
              <td class="text-center py-1">{{ $premA[1] < 10 ? '0'.$premA[1]:$premA[1] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premC[1] < 10 ? '0'.$premC[1]:$premC[1] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premD[1] < 10 ? '0'.$premD[1]:$premD[1] }}</td>
            </tr>
          </table>
        </td>
        <td class="text-center p-0" style="width: 40%">
          <table style="width: 100%">
            <tr>
              <td class="text-center py-1">{{ $premA[2] < 10 ? '0'.$premA[2]:$premA[2] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premC[2] < 10 ? '0'.$premC[2]:$premC[2] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premD[2] < 10 ? '0'.$premD[2]:$premD[2] }}</td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </td>
  <td class="p-0">
    <table class="m-0" style="width: 100%">
      <tr>
        <td class="text-center p-0" style="width: 30%">
          <table style="width: 100%">
            <tr>
              <td class="text-center py-1">{{ $premA[3] < 10 ? '0'.$premA[3]:$premA[3] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premC[3] < 10 ? '0'.$premC[3]:$premC[3] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premD[3] < 10 ? '0'.$premD[3]:$premD[3] }}</td>
            </tr>
          </table>
        </td>
        <td class="text-center p-0" style="width: 30%">
          <table style="width: 100%">
            <tr>
              <td class="text-center py-1">{{ $premA[4] < 10 ? '0'.$premA[4]:$premA[4] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premC[4] < 10 ? '0'.$premC[4]:$premC[4] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premD[4] < 10 ? '0'.$premD[4]:$premD[4] }}</td>
            </tr>
          </table>
        </td>
        <td class="text-center p-0" style="width: 40%">
          <table style="width: 100%">
            <tr>
              <td class="text-center py-1">{{ $premA[5] < 10 ? '0'.$premA[5]:$premA[5] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premC[5] < 10 ? '0'.$premC[5]:$premC[5] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premD[5] < 10 ? '0'.$premD[5]:$premD[5] }}</td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </td>
  <td class="p-0">
    <table class="m-0" style="width: 100%">
      <tr>
        <td class="text-center p-0" style="width: 30%">
          <table style="width: 100%">
            <tr>
              <td class="text-center py-1">{{ $premA[6] < 10 ? '0'.$premA[6]:$premA[6] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premC[6] < 10 ? '0'.$premC[6]:$premC[6] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premD[6] < 10 ? '0'.$premD[6]:$premD[6] }}</td>
            </tr>
          </table>
        </td>
        <td class="text-center p-0" style="width: 30%">
          <table style="width: 100%">
            <tr>
              <td class="text-center py-1">{{ $premA[7] < 10 ? '0'.$premA[7]:$premA[7] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premC[7] < 10 ? '0'.$premC[7]:$premC[7] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premD[7] < 10 ? '0'.$premD[7]:$premD[7] }}</td>
            </tr>
          </table>
        </td>
        <td class="text-center p-0" style="width: 40%">
          <table style="width: 100%">
            <tr>
              <td class="text-center py-1">{{ $premA[8] < 10 ? '0'.$premA[8]:$premA[8] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premC[8] < 10 ? '0'.$premC[8]:$premC[8] }}</td>
            </tr>
            <tr>
              <td class="text-center py-1">{{ $premD[8] < 10 ? '0'.$premD[8]:$premD[8] }}</td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  </td>
</tr>
<tr class="p-0">
  <td class="p-0">
    <table class="m-0" style="width: 100%">
      <tr>
        <td class="text-center py-1" style="width: 100%">Total</td>
      </tr>
    </table>
  </td>
  <td class="p-0">
    <table class="m-0" style="width: 100%">
      <tr>
        <td class="text-center py-1" style="width: 100%">{{ $premT[9] < 10 ? '0'.$premT[9]:$premT[9] }}</td>
      </tr>
    </table>
  </td>
  <td class="p-0">
    <table class="m-0" style="width: 100%">
      <tr>
        <td class="text-center py-1" style="width: 30%">{{ $premT[0] < 10 ? '0'.$premT[0]:$premT[0] }}</td>
        <td class="text-center py-1" style="width: 30%">{{ $premT[1] < 10 ? '0'.$premT[1]:$premT[1] }}</td>
        <td class="text-center py-1" style="width: 40%">{{ $premT[2] < 10 ? '0'.$premT[2]:$premT[2] }}</td>
      </tr>
    </table>
  </td>
  <td class="p-0">
    <table class="m-0" style="width: 100%">
      <tr>
        <td class="text-center py-1" style="width: 30%">{{ $premT[3] < 10 ? '0'.$premT[3]:$premT[3] }}</td>
        <td class="text-center py-1" style="width: 30%">{{ $premT[4] < 10 ? '0'.$premT[4]:$premT[4] }}</td>
        <td class="text-center py-1" style="width: 40%">{{ $premT[5] < 10 ? '0'.$premT[5]:$premT[5] }}</td>
      </tr>
    </table>
  </td>
  <td class="p-0">
    <table class="m-0" style="width: 100%">
      <tr>
        <td class="text-center py-1" style="width: 30%">{{ $premT[6] < 10 ? '0'.$premT[6]:$premT[6] }}</td>
        <td class="text-center py-1" style="width: 30%">{{ $premT[7] < 10 ? '0'.$premT[7]:$premT[7] }}</td>
        <td class="text-center py-1" style="width: 40%">{{ $premT[8] < 10 ? '0'.$premT[8]:$premT[8] }}</td>
      </tr>
    </table>
  </td>
</tr>