shaunakwyn / gTalents

it contains gTalents files repository...
0 stars 0 forks source link

[ issue #24 ] Admin - Vacancies - List and Date #6

Open shaunakwyn opened 4 years ago

shaunakwyn commented 4 years ago

[File]

/htdocs/gtalents/local-alpha/resources/views/vacancy/index.blade.php

[Changes]

in <thead> of id "#table_id" : 
{code}
       <th>Posted On</th>
       <th>Suppliers</th>
{code}
after "<tbody>
            @if (count($vacancies))
                @foreach ($vacancies as $vacancy)"
{code}
       <?php   $suppliers = \Vanguard\VacancyUser::where('vacancy_id', $vacancy->id)->where('status',1)->get();
                        $sups_ar = []; ?>
{code}

{code}
     <td>{{ $vacancy->created_at }}</td>
     <td>
         @foreach ($suppliers as $supplier)
         <?php $sups_ar[] = $supplier->supplier->code; ?>                                
         @endforeach
         <?php $sups_str = implode(',', $sups_ar); ?>
         {{$sups_str}}
     </td>
{code}