blue-twilight/resources/views/themes/base/admin/delete_album.blade.php

35 lines
1.9 KiB
PHP
Raw Normal View History

@extends('themes.base.layout')
@section('title', trans('admin.delete_album', ['name' => $album->name]))
@section('breadcrumb')
<li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
<li class="breadcrumb-item"><a href="{{ route('admin') }}">@lang('navigation.breadcrumb.admin')</a></li>
<li class="breadcrumb-item"><a href="{{ route('albums.index') }}">@lang('navigation.breadcrumb.albums')</a></li>
<li class="breadcrumb-item"><a href="{{ route('albums.show', ['id' => $album->id]) }}">{{ $album->name }}</a></li>
<li class="breadcrumb-item active">@lang('navigation.breadcrumb.delete_album')</li>
@endsection
@section('content')
<div class="container">
<div class="row">
<div class="col-md-8 offset-md-2">
<div class="card card-outline-danger">
<div class="card-header card-danger">@yield('title')</div>
<div class="card-block">
<p>@lang('admin.delete_album_confirm', ['name' => $album->name])</p>
<p class="text-danger"><b>@lang('admin.delete_album_warning')</b></p>
<div class="text-right">
<form action="{{ route('albums.destroy', [$album->id]) }}" method="POST">
{{ csrf_field() }}
{{ method_field('DELETE') }}
<a href="{{ route('albums.show', ['id' => $album->id]) }}" class="btn btn-link">@lang('forms.cancel_action')</a>
<button type="submit" class="btn btn-danger"><i class="fa fa-fw fa-trash"></i> @lang('forms.delete_action')</button>
</form>
</div>
</pdiv>
</div>
</div>
</div>
</div>
@endsection