@extends('app.dna.teams.single')
@section('inner-content')

<div class="card">

	<div class="card-header px-3 py-2 d-flex align-items-center">
		<strong class="text-nowrap">
			<i class="fas fa-clipboard"></i>
			Team Flyers
		</strong>
	</div>
	<div class="card-body p-0">

		<table class="table table-sm table-striped p-0 m-0">
			<thead class="bg-light">
				<tr>
					<th class="border-0">Title</th>
					<th class="border-0">template</th>
					<th class="border-0">url</th>
					<th class="border-0">Status</th>
					<th class="border-0">&nbsp;</th>
				</tr>
			</thead>
			<tbody>
				@foreach($flyerTemplates as $flyer)
				<tr>
					<td>{{ $flyer->title }}</td>
					<td>{{ $flyer->template }}</td>
					<td><a href="{{ $flyer->url }}" target="_blank" native>{{ $flyer->url }}</a></td>
					<td>{{ $flyer->active ? 'ACTIVE':'INACTIVE' }}</td>
					<td></td>
				</tr>
				@endforeach
			</tbody>
		</table>
	</div>
</div>


@endsection