<li class="nav-header">MENU</li>

<li class="nav-item">
	<a href="{{ url('home') }}" class="nav-link @if(preg_match('#^home/[0-9]+$#',request()->path()))active @endif">
		<i class="nav-icon fas fa-home"></i> <p>Home</p>
	</a>
</li>

<li class="pt-3 nav-item has-treeview @if(preg_match('#^p/(duplicate|delete)s#',request()->path()))menu-open @else menu-closed @endif">
	<a href="#" class="nav-link @if(preg_match('#^/(duplicate|delete)s/[0-9]+#',request()->path())) active @endif">
		<i class="nav-icon fas fa-camera"></i> <p>PHOTOS<i class="fas fa-angle-left right"></i></p>
	</a>

	<ul class="nav nav-treeview">
		<li class="nav-item">
			<a href="{{ url('p/duplicates') }}" class="nav-link @if(preg_match('#^p/duplicates$#',request()->path())) active @endif">
				<i class="fas fa-link nav-icon"></i> <p>Duplicate</p>
				<span class="badge badge-warning right">{{ \App\Models\Photo::duplicates()->count() }}</span>
			</a>
		</li>

		<li class="nav-item">
			<a href="{{ url('p/deletes') }}" class="nav-link @if(preg_match('#^p/deletes$#',request()->path())) active @endif">
				<i class="fas fa-calendar nav-icon"></i> <p>Delete</p>
				<span class="badge badge-danger right">{{ \App\Models\Photo::where('remove',TRUE)->count() }}</span>
			</a>
		</li>
	</ul>
</li>

<li class="pt-3 nav-item has-treeview @if(preg_match('#^v/(duplicate|delete)s#',request()->path()))menu-open @else menu-closed @endif">
	<a href="#" class="nav-link @if(preg_match('#^/(duplicate|delete)s/[0-9]+#',request()->path())) active @endif">
		<i class="nav-icon fas fa-video"></i> <p>VIDEOS<i class="fas fa-angle-left right"></i></p>
	</a>

	<ul class="nav nav-treeview">
		<li class="nav-item">
			<a href="{{ url('v/duplicates') }}" class="nav-link @if(preg_match('#^v/duplicates$#',request()->path())) active @endif">
				<i class="fas fa-link nav-icon"></i> <p>Duplicate</p>
				<span class="badge badge-warning right">{{ \App\Models\Video::duplicates()->count() }}</span>
			</a>
		</li>

		<li class="nav-item">
			<a href="{{ url('v/deletes') }}" class="nav-link @if(preg_match('#^v/deletes$#',request()->path())) active @endif">
				<i class="fas fa-calendar nav-icon"></i> <p>Delete</p>
				<span class="badge badge-danger right">{{ \App\Models\Video::where('remove',TRUE)->count() }}</span>
			</a>
		</li>
	</ul>
</li>