Skip to content

Instantly share code, notes, and snippets.

@witchica
Created March 19, 2016 23:23
Show Gist options
  • Save witchica/9546edda48eda684370f to your computer and use it in GitHub Desktop.
Save witchica/9546edda48eda684370f to your computer and use it in GitHub Desktop.
@extends('layouts.app') <--- this is the file that you are making now
@section('content') <- then ill add a thing to make this where the content goes and it will display this on the page
<div class="container">
<ul class="list-group">
@foreach($configs as $config)
<li class="list-group-item clearfix">
{{ $cpus[$config->cpu] . " at " . $config->cpu_clock . "Ghz with " . $config->vram_amount . "MB of " . $vram[$config->vram_type] . " VRAM (" . $config->fps . "fps) "}}
<span class="pull-right">
<span class="label label-danger">By {{$users[$config->id] == null ? "a guest" : $users[$config->id]->name}} on the {{(new DateTime($config->added_at))->format("d/m/Y")}}</span>
<a href="/config/{{ $config->id }}" class="btn btn-xs btn-warning">View</a>
</span>
</li>
@endforeach
</ul>
</div>
@endsection <- this ends the section :P
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment