Skip to content

Instantly share code, notes, and snippets.

@evercode1
Created August 30, 2016 03:48
Show Gist options
  • Save evercode1/5164aba1f0bb15b26a69c12a3bb2dddc to your computer and use it in GitHub Desktop.
Save evercode1/5164aba1f0bb15b26a69c12a3bb2dddc to your computer and use it in GitHub Desktop.

Revisions

  1. evercode1 created this gist Aug 30, 2016.
    29 changes: 29 additions & 0 deletions index.blade.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    <table class="table table-hover table-bordered table-striped">

    <thead>
    <th>Thumbnail</th>
    <th>Name</th>
    <th>Weight</th>
    <th>Featured</th>
    <th>Active</th>
    <th>Date Created</th>
    </thead>

    <tbody>

    @foreach($marketingImages as $marketingImage)

    <tr>
    <td><a href="/marketing-image/{{ $marketingImage->id }}"><img src="{{ $marketingImage->showImage($marketingImage, $thumbnailPath) }}"></a></td>
    <td><a href="/marketing-image/{{ $marketingImage->id }}">{{ $marketingImage->image_name }}</a></td>
    <td>{{ $marketingImage->image_weight }}</td>
    <td>{{ $marketingImage->showFeaturedStatus($marketingImage->is_featured) }}</td>
    <td>{{ $marketingImage->showActiveStatus($marketingImage->is_active)}}</td>
    <td>{{ $marketingImage->created_at }}</td>
    </tr>

    @endforeach

    </tbody>

    </table>