Fix for vendor contact export

This commit is contained in:
Hillel Coren 2016-09-19 10:18:06 +03:00
parent 767d4d148a
commit dab6053435
2 changed files with 10 additions and 10 deletions

View File

@ -50,9 +50,9 @@
@include('export.vendors') @include('export.vendors')
@endif @endif
@if (isset($vendors_contacts) && $vendors_contacts && count($vendors_contacts)) @if (isset($vendor_contacts) && $vendor_contacts && count($vendor_contacts))
<tr><td>{{ strtoupper(trans('texts.vendors_contacts')) }}</td></tr> <tr><td>{{ strtoupper(trans('texts.vendor_contacts')) }}</td></tr>
@include('export.vendors_contacts') @include('export.vendor_contacts')
@endif @endif
</html> </html>

View File

@ -10,16 +10,16 @@
</tr> </tr>
@foreach ($vendor_contacts as $contact) @foreach ($vendor_contacts as $contact)
@if (!$vendor_contact->vendor->is_deleted) @if (!$contact->vendor->is_deleted)
<tr> <tr>
<td>{{ $vendor_contact->vendor->getDisplayName() }}</td> <td>{{ $contact->vendor->getDisplayName() }}</td>
@if ($multiUser) @if ($multiUser)
<td>{{ $vendor_contact->user->getDisplayName() }}</td> <td>{{ $contact->user->getDisplayName() }}</td>
@endif @endif
<td>{{ $vendor_contact->first_name }}</td> <td>{{ $contact->first_name }}</td>
<td>{{ $vendor_contact->last_name }}</td> <td>{{ $contact->last_name }}</td>
<td>{{ $vendor_contact->email }}</td> <td>{{ $contact->email }}</td>
<td>{{ $vendor_contact->phone }}</td> <td>{{ $contact->phone }}</td>
</tr> </tr>
@endif @endif
@endforeach @endforeach