<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            <?php
            echo isset($title) ? $title : NULL;
            ?>
        </h1>
    </section>
    <!-- Main content -->
    <section class="content">
        <div class="row">
            <form method="post" enctype="multipart/form-data">
                <div class="col-lg-6">
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">Add a Branch</h3>
                        </div>
                        <!-- /.box-header -->
                        <!-- form start -->

                        <?php
                        if (isset($message)) {
                            echo $message;
                        }
                        ?>
                        <div class="box-body">
                            <div class="form-group">
                                <label for="exampleInputEmail1">Title</label>
                                <input type="text" name="title" value="<?php if (isset($_POST['title'])) {
                                    echo $_POST['title'];
                                } ?>" class="form-control" id="exampleInputEmail1" placeholder="Enter Branch Title">
                                <p class="help-block">Enter Branch Title
                                <p>
                            </div>
                            <div class="form-group">
                                <label for="exampleInputEmail1">Address</label>
                                <input type="text" name="address" value="<?php if (isset($_POST['address'])) {
                                    echo $_POST['address'];
                                } ?>" class="form-control" id="exampleInputEmail1" placeholder="Enter Branch Address">
                                <p class="help-block">Enter Branch Address
                                <p>
                            </div>
                            <div class="form-group">
                                <label for="exampleInputEmail1">Main Phone</label>
                                <input type="text" name="phone" value="<?php if (isset($_POST['phone'])) {
                                    echo $_POST['phone'];
                                } ?>" class="form-control" id="exampleInputEmail1" placeholder="Enter Branch Phone">
                                <p class="help-block">Enter Branch Phone
                                <p>
                            </div>
                            <div class="form-group">
                                <label for="exampleInputEmail1">Email</label>
                                <input type="email" name="email" value="<?php if (isset($_POST['email'])) {
                                    echo $_POST['email'];
                                } ?>" class="form-control" id="exampleInputEmail1" placeholder="Enter Branch email">
                                <p class="help-block">Enter Branch email
                                <p>
                            </div>


                            <div class="form-group">
                                <label for="availability" class="set-block">Status</label>
                                <div class="radio radio-info  radio-inline">
                                    <input type="radio" id="inlineRadio1" value="1" name="status" checked="">
                                    <label for="inlineRadio1"> Active </label>
                                </div>
                                <div class="radio radio-info  radio-inline">
                                    <input type="radio" id="inlineRadio2" value="2" name="status">
                                    <label for="inlineRadio2"> Not Active </label>
                                </div>
                            </div>
                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer">
                            <button type="submit" name="add" class="btn btn-primary">Add</button>
                        </div>
                    </div>
                    <!-- /.box -->
                </div>
                <div class="col-lg-6 arab_dir">
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">أضف فرع جديد</h3>
                        </div>
                        <!-- /.box-header -->
                        <!-- form start -->
                        <div class="box-body">
                            <div class="form-group">
                                <label for="exampleInputEmail1">الاسم</label>
                                <input type="text" name="ar_title" value="<?php if (isset($_POST['ar_title'])) {
                                    echo $_POST['ar_title'];
                                } ?>" class="form-control" id="exampleInputEmail1" placeholder="ادخل الاسم">
                                <p class="help-block">ادخل اسم
                                <p>
                            </div>

                            <div class="form-group">
                                <label for="exampleInputEmail1">العنوان</label>
                                <input type="text" name="ar_address" value="<?php if (isset($_POST['ar_address'])) {
                                    echo $_POST['ar_address'];
                                } ?>" class="form-control" id="exampleInputEmail1" placeholder="ادخل عنوان الفرع">
                                <p class="help-block">ادخل عنوان الفرع
                                <p>
                            </div>
                        </div>
                        <!-- /.box-body -->
                    </div>
                    <!-- /.box -->
                </div>

            </form>
        </div>
    </section><!-- /.content -->
</div><!-- /.content-wrapper -->
