@component('components.widget', ['title' => 'Create draft price book'])
{!! Form::open(['route' => 'central-price-books.store', 'method' => 'post']) !!}
{!! Form::label('name', 'Name:*') !!}{!! Form::text('name', null, ['class' => 'form-control', 'required']) !!}
{!! Form::label('description', 'Description:') !!}{!! Form::textarea('description', null, ['class' => 'form-control', 'rows' => 2]) !!}
{!! Form::label('location_ids', 'Branches:*') !!}{!! Form::select('location_ids[]', $locations, null, ['class' => 'form-control select2', 'multiple', 'required']) !!}
{!! Form::label('starts_at', 'Effective from:') !!}
{!! Form::label('ends_at', 'Effective until:') !!}
Create draft
{!! Form::close() !!}
@endcomponent
@component('components.widget', ['title' => 'Price books'])
Name Version Priority Branches Prices Status
@forelse($books as $book)
{{ $book->name }}
v{{ $book->version }}
{{ $book->priority }}
{{ $book->locations_count }}
{{ $book->items_count }}
{{ ucfirst($book->status) }}
Open
@empty
No centralized price books yet.
@endforelse
{{ $books->links() }}
@endcomponent