@extends('admin.layout.default') @section('title', 'Logo') @section('body')
@foreach($mp3s as $mp3)
{{$mp3->title}}
@foreach($mp3->Mp3Datas as $mp3Datas) @if(isset($mp3Datas->getMedia('audio')[0]))
{{$mp3Datas->title}}
Ecouter {!! Form::open(['action'=> ['\App\Http\Controllers\Admin\Mp3Controller@show', $mp3Datas->getMedia('audio')[0]], 'method'=>'POST', 'style'=>'display: inline-block']) !!} {{ Form::hidden('getPath', $mp3Datas->getMedia('audio')[0]->getPath()) }} {{ Form::hidden('file_name', json_decode($mp3Datas->getMedia('audio')[0]->getOriginal('custom_properties'), true)['name']) }} {!! Form::submit('Télécharger',['class'=>'btn btn-secondary']) !!} {!! Form::close() !!}
@endif @endforeach
@endforeach
@endsection @section('styles') @endsection