Last active
October 24, 2018 05:30
-
-
Save brandongallardoa/b8223cc7dca197e729f00ceda0603280 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.app') | |
@section('content') | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-8 col-md-offset-2"> | |
... EL OTRO PANEL FUE OMITIDO PARA LA BREVEDAD DEL CÓDIGO | |
<div class="panel panel-default"> | |
<div class="panel-heading">Tus fotos</div> | |
<div class="panel-body"> | |
<div class="container"> | |
<div class="row text-lg-left"> | |
@foreach (Auth::user()->posts as $post) | |
<div class="col-md-2"> | |
<div class="card mb-2 box-shadow"> | |
<img src="{{ $post->photo }}" | |
v-on:click="openModal" | |
photo="{{ $post->photo }}" | |
description="{{ $post->description }}" | |
alt="{{ $post->description }}" | |
height="150"> | |
</div> | |
</div> | |
@endforeach | |
</div> | |
<div class="modal fade" id="post_modal" role="dialog" aria-hidden="true"> | |
<div class="modal-dialog modal-dialog-centered modal-lg" role="document"> | |
<div class="modal-content"> | |
<div class="modal-header"> | |
<h5 class="modal-title">{{ Auth::user()->name }}</h5> | |
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> | |
<span aria-hidden="true">×</span> | |
</button> | |
</div> | |
<div class="modal-body"> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-5"> | |
<img v-bind:src="photo" width="400"> | |
</div> | |
<div class="col-md-3"> | |
<strong class="label label-default">{{ Auth::user()->name }}</strong> | |
@{{ description }} | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
@endsection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment