2018-04-16 01:55:48 +00:00
|
|
|
@extends('layouts.app')
|
|
|
|
|
2018-05-26 22:42:47 +00:00
|
|
|
@push('scripts')
|
|
|
|
<script type="text/javascript" src="{{mix('js/timeline.js')}}"></script>
|
|
|
|
@endpush
|
|
|
|
|
2018-04-16 01:55:48 +00:00
|
|
|
@section('content')
|
|
|
|
|
|
|
|
<div class="container">
|
2018-05-26 22:42:47 +00:00
|
|
|
<div class="col-12 col-md-8 offset-md-2 pt-4">
|
2018-04-17 01:25:05 +00:00
|
|
|
@if ($errors->any())
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
<ul>
|
|
|
|
@foreach ($errors->all() as $error)
|
|
|
|
<li>{{ $error }}</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
@endif
|
2018-04-16 01:55:48 +00:00
|
|
|
|
2018-06-02 22:53:35 +00:00
|
|
|
@include('timeline.partial.new-form')
|
|
|
|
|
2018-04-17 01:25:05 +00:00
|
|
|
<div class="timeline-feed my-5" data-timeline="personal">
|
2018-05-26 22:42:47 +00:00
|
|
|
@foreach($timeline as $item)
|
2018-04-17 01:25:05 +00:00
|
|
|
|
2018-05-26 22:42:47 +00:00
|
|
|
@include('status.template')
|
|
|
|
|
|
|
|
@endforeach
|
2018-06-01 03:24:15 +00:00
|
|
|
@if($timeline->count() == 0)
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-body py-5">
|
|
|
|
<div class="d-flex justify-content-center align-items-center">
|
|
|
|
<p class="lead font-weight-bold mb-0">{{ __('timeline.emptyPersonalTimeline') }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
2018-05-26 22:42:47 +00:00
|
|
|
</div>
|
2018-06-05 06:27:18 +00:00
|
|
|
|
|
|
|
<div class="page-load-status">
|
|
|
|
<div class="infinite-scroll-request">
|
2018-06-06 02:02:09 +00:00
|
|
|
<div class="d-none fixed-top loading-page"></div>
|
2018-06-05 06:27:18 +00:00
|
|
|
</div>
|
|
|
|
<div class="infinite-scroll-last">
|
|
|
|
<h3>No more content</h3>
|
|
|
|
<p class="text-muted">
|
|
|
|
Maybe you could try
|
|
|
|
<a href="{{route('discover')}}">discovering</a>
|
|
|
|
more people you can follow.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="infinite-scroll-error">
|
|
|
|
<h3>Whoops, an error</h3>
|
|
|
|
<p class="text-muted">
|
|
|
|
Try reloading the page
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-05-26 22:42:47 +00:00
|
|
|
<div class="d-flex justify-content-center">
|
|
|
|
{{$timeline->links()}}
|
2018-04-17 01:25:05 +00:00
|
|
|
</div>
|
|
|
|
|
2018-04-16 01:55:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2018-06-01 07:47:34 +00:00
|
|
|
@endsection
|