@extends('layouts.admin.master') @section('title', 'Location') @section('content') Location Add New Location {{-- Clear Save --}} City Lists No City Name Discontinued Edit Delete @if (count($cities) != 0) @php $count = 1; @endphp @foreach ($cities as $city) {{ $count }} {{ $city['city_name'] }} @if ($city['is_discontinued'] == 0) @elseif ($city['is_discontinued'] == 1) @endif @php $count++; @endphp @endforeach @endif New City City @csrf City Name * Discontinued Update City @csrf City Name * Discontinued @csrf Are you sure want to delete? Township Lists No Township Name City Name Discontinued Edit Delete @if (count($townships) != 0) @php $count = 1; @endphp @foreach ($townships as $township) {{ $count }} {{ $township['township_name'] }} {{ $township['city_name'] }} @if ($township['township_is_discontinued'] == 0) @elseif ($township['township_is_discontinued'] == 1) @endif @php $count++; @endphp @endforeach @endif New Township Township @csrf City Name @if (count($availableCities) != 0) @foreach ($availableCities as $availableCity) {{ $availableCity['city_name'] }} @endforeach @endif Township Name Discontinued Update Township @csrf City Name @if (count($cities) != 0) @foreach ($cities as $city) {{ $city['city_name'] }} @endforeach @endif Township Name Discontinued @csrf Are you sure want to delete? @endsection