@extends('dashboard.layouts.master' ) @section('content') {{__('admin.Edit Book')}} {{__('admin.Books')}} {{__('admin.Edit Book')}} {{ method_field('patch') }} {{ csrf_field() }} {{__('admin.Title')}} @if ($errors->has('title')) {{ $errors->first('title') }} @endif {{__('admin.image')}} @if ($errors->has('image')) {{ $errors->first('image') }} @endif {{__('admin.Description')}} {{$book->description}} @if ($errors->has('description')) {{ $errors->first('description') }} @endif {{__('admin.nickname')}} @if ($errors->has('nickname')) {{ $errors->first('nickname') }} @endif {{__('admin.About')}} {{$book->about}} @if ($errors->has('about')) {{ $errors->first('about') }} @endif {{__('admin.Category')}} @foreach ($categories as $category) id == $book->category_id) selected @endif>{{$category->title}} @endforeach @if ($errors->has('category_id')) {{ $errors->first('category_id') }} @endif {{__('admin.Type')}} @foreach ($types as $type) id == $book->type_id) selected @endif>{{$type->title}} @endforeach @if ($errors->has('type_id')) {{ $errors->first('type_id') }} @endif {{__('admin.Fees')}} @if ($errors->has('fees')) {{ $errors->first('fees') }} @endif {{__('admin.Feature')}} @foreach ($features as $feature) id,$book->features()->pluck('feature_id')->toArray())) selected @endif>{{$feature->title}} @endforeach @if ($errors->has('feature_id')) {{ $errors->first('feature_id') }} @endif {{----}} {{__('admin.edit')}} @endsection