@extends('layouts.blank')
@push('stylesheets')
@endpush
@push('inline-scripts')
if($(this).prop("checked")==false){
$("#checkall").prop("checked", false);
}
if($(".branch:checked").length == $(".branch").length) {
$("#checkall").prop("checked", true);
}
$("#checkall").change(function(){
$(".branch").prop("checked", $(this).prop("checked"));
});
$(".branch").change(function(){
if($(this).prop("checked")==false){
$("#checkall").prop("checked", false);
}
if($(".branch:checked").length == $(".branch").length) {
$("#checkall").prop("checked", true);
}
});
@endpush
@section('main_container')
@include('includes/notifications')
{!! Form::open(array('route' => ['users.storebranch', $user->id],'class' => 'form-horizontal form-label-left')) !!}
{!! Form::close() !!}
@endsection