Add collection views

This commit is contained in:
Daniel Supernault 2019-07-17 20:08:56 -06:00
parent de56ddd7b5
commit a86a1ae401
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 57 additions and 0 deletions

View file

@ -0,0 +1,24 @@
@extends('layouts.app')
@section('content')
<collection-compose collection-id="{{$collection->id}}" profile-id="{{Auth::user()->profile_id}}"></collection-compose>
@endsection
@push('styles')
<style type="text/css">
</style>
@endpush
@push('scripts')
<script type="text/javascript" src="{{ mix('js/collectioncompose.js') }}"></script>
<script type="text/javascript" src="{{ mix('js/compose.js') }}"></script>
<script type="text/javascript">
$(document).ready(function() {
new Vue({
el: '#content'
});
});
</script>
@endpush

View file

@ -0,0 +1,33 @@
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row">
<div class="col-12 mt-5 py-5">
<div class="text-center">
<h1>Collection</h1>
<h4 class="text-muted">{{$collection->title}}</h4>
</div>
</div>
<div class="col-12">
<collection-component collection-id="{{$collection->id}}"></collection-component>
</div>
</div>
</div>
@endsection
@push('styles')
<style type="text/css">
</style>
@endpush
@push('scripts')
<script type="text/javascript" src="{{mix('js/compose.js')}}"></script>
<script type="text/javascript" src="{{mix('js/collections.js')}}"></script>
<script type="text/javascript">
new Vue({
el: '#content'
})
</script>
@endpush