@extends('admin.layouts.app') @section('content')

{{$section->title}}

{{-- @include('admin.components.alert') --}}
{!! Form::model($album, ['route' => $section->route, 'class' => 'form-validate', 'files' => true, 'enctype' => 'multipart/form-data', 'autocomplete' => 'off']) !!} @method($section->method)
{!! Form::text('album_name', null, ['class' => 'form-control', 'placeholder' => 'Album Name', 'required' => 'required', 'id' => 'name']) !!}
@if ($errors->has('album_name'))

{{ $errors->first('album_name') }}

@endif
{!! Form::text('album_price', null, ['class' => 'form-control', 'placeholder' => 'Album Price', 'required' => 'required', 'id' => 'name']) !!}
@if ($errors->has('album_price'))

{{ $errors->first('album_price') }}

@endif
{!! Form::file('album_image', ['class' => 'custom-file-input', 'id' => 'customFile']) !!}
@if ($errors->has('album_image'))

{{ $errors->first('album_image') }}

@endif
@if($section->method == "PUT")
{!! Form::file('photos[]', ['class' => 'custom-file-input ', 'id' => 'customFile','multiple']) !!}
@if ($errors->has('photos'))

{{ $errors->first('photos') }}

@endif
@endif @if($section->method == "PUT")
{!! Form::select('status', ['1' => 'Active', '0' => 'Inactive'], null, ['class' => 'form-control form-select select2']); !!}
@endif
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-outline-primary']) !!}
{!! Form::close() !!}
@section('scripts') @endsection @endsection