@extends('layouts.adminapp')

@section('content')

{{-- Godown view --}}

<div class="card mb-4">
    <div class="card-header">
        <div class="d-flex">
            <div class="mr-auto p-2 align-self-center"><h4>Godown List</h4></div>
            <div class="p-2">              
            <a class="btn btn-primary" href="{{ route('AddNew') }}"><i class="fa fa-plus"></i> Create New</a>
            </div>           
        </div>
    </div>
</div>    
<div class="row">
    @foreach($Godowns as $Godown)
        <div class="col-sm-3 col-2">
            <a href="{{route('SelectGodown',$Godown->id)}}" class="a-cards"><div class="card p-5 gd_cards">
                <h3>{{$Godown->title}}</h3>
            </div></a>
        </div>    
    @endforeach
</div>

@endsection
