<div class="card card-body">
	<h1>{$title}</h1>
	<a class="btn btn-success" href="{{url("/admin/movie-list")}}"><i class="fa fa-arrow-left"></i> Go
		back</a>
	<form enctype="multipart/form-data" action="movie-edit?action=submit" method="post">
		{{csrf_field()}}

		<input type="hidden" name="id" value="{$movie.imdbid}"/>

		<table class="input data table table-striped responsive-utilities jambo-table">

			<tr>
				<td><label for="title">IMDB id</label>:</td>
				<td>{$movie.imdbid}</td>
			</tr>

			<tr>
				<td><label for="title">TMDb id</label>:</td>
				<td>{$movie.tmdbid}</td>
			</tr>

			<tr>
				<td><label for="title">Title</label>:</td>
				<td>
					<input id="title" class="long" name="title" type="text" value="{$movie.title|escape:'htmlall'}"/>
				</td>
			</tr>

			<tr>
				<td><label for="tagline">Tagline</label>:</td>
				<td>
					<input id="tagline" class="long" name="tagline" type="text"
						   value="{$movie.tagline|escape:'htmlall'}"/>
				</td>
			</tr>

			<tr>
				<td><label for="plot">Plot</label>:</td>
				<td>
					<textarea id="plot" name="plot">{$movie.plot|escape:'htmlall'}</textarea>
				</td>
			</tr>

			<tr>
				<td><label for="year">Year</label>:</td>
				<td>
					<input id="year" class="short" name="year" type="text" value="{$movie.year|escape:'htmlall'}"/>
				</td>
			</tr>

			<tr>
				<td><label for="rating">Rating</label>:</td>
				<td>
					<input id="rating" class="short" name="rating" type="text"
						   value="{$movie.rating|escape:'htmlall'}"/>
				</td>
			</tr>

			<tr>
				<td><label for="genre">Genre</label>:</td>
				<td>
					<input id="genre" class="long" name="genre" type="text" value="{$movie.genre|escape:'htmlall'}"/>
				</td>
			</tr>

			<tr>
				<td><label for="director">Director</label>:</td>
				<td>
					<input id="director" class="long" name="director" type="text"
						   value="{$movie.director|escape:'htmlall'}"/>
				</td>
			</tr>

			<tr>
				<td><label for="actors">Actors</label>:</td>
				<td>
					<textarea id="actors" name="actors">{$movie.actors|escape:'htmlall'}</textarea>
				</td>
			</tr>

			<tr>
				<td><label for="language">Language</label>:</td>
				<td>
					<input id="language" class="long" name="language" type="text"
						   value="{$movie.language|escape:'htmlall'}"/>
				</td>
			</tr>

			<tr>
				<td><label for="cover">Cover Image</label>:</td>
				<td>
					<input type="file" id="cover" name="cover"/>
					{if $movie.cover == 1}
						<img style="max-width:200px; display:block;"
							 src="{{url("/covers/movies/{$movie.imdbid}-cover.jpg")}}" alt=""/>
					{/if}
				</td>
			</tr>

			<tr>
				<td><label for="backdrop">Backdrop Image</label>:</td>
				<td>
					<input type="file" name="backdrop"/>
					{if $movie.backdrop == 1}
						<img style="max-width:200px; display:block;"
							 src="{{url("/covers/movies/{$movie.imdbid}-backdrop.jpg")}}" alt=""/>
					{/if}
				</td>
			</tr>

			<tr>
				<td></td>
				<td>
					<input class="btn btn-success" type="submit" value="Save"/>
				</td>
			</tr>

		</table>

	</form>
</div>
