@lang('Import Pincode From CSV File')
@if (isset($errors) && $errors->any())
@foreach ($errors->any() as $error) {{ $error }} @endforeach
@endif @if(session()->has('status')) @endif @if (session()->has('failures')) @endif
@include('includes.form_errors') {!! Form::open(['method'=>'post', 'action'=>'ManagePincodesController@importPincodes', 'files'=>true, 'onsubmit'=>'submit_button.disabled = true; submit_button.value = "' . __('Please Wait...') . '"; return true;']) !!}

@lang('Import Pincode From CSV File')

{!! Form::label('file', __('Choose CSV File'), ['class'=>'btn btn-default btn-file']) !!} {!! Form::file('file',['class'=>'form-control', 'style'=>'display: none;','onchange'=>'$("#upload-file-name").html(files[0].name)']) !!} @lang('No file chosen')
{!! Form::submit(__('Import Pincodes'), ['class'=>'btn btn-primary btn-block', 'name'=>'submit_button']) !!}
{!! Form::close() !!}
@lang('View Pincodes')
{{csrf_field()}}
@if($pincodes) @foreach($pincodes as $pincode) @endforeach @endif
@lang('ID') @lang('Pincode') @lang('Status') @lang('Date')
{{$pincode->id}} {{$pincode->name}} @if($pincode->is_active) @lang('Active') @else @lang('Inactive') @endif {{$pincode->created_at->toFormattedDateString()}}