


<?php $__env->startSection('title'); ?>
<?php echo e(__('Buyers list')); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('breadcrumb'); ?>
<div class="row page-title align-items-center">
    <div class="col-12 col-xl-12">
        <h3 class="mb-1 mt-0 text-left"><?php echo e(__('Project buyer list')); ?>

            <span style="float:right;">
                <a href="javascript:;" role="button" class="btn custom-button " data-toggle="modal"
                    data-target="#addBuyer"><i class="uil-plus mr-1"></i> <?php echo e(__('Project
                    buyer')); ?></a></span>
        </h3>
        <nav aria-label="breadcrumb" class="float-left mt-1">
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>"><?php echo e(__('Home')); ?></a></li>
                <li class="breadcrumb-item active" aria-current="page"><?php echo e(__('Project buyer list')); ?></li>
            </ol>
        </nav>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<!-- filters -->
<div class="card">
    <div class="card-body px-3">
        <div class="row ">
            <div class="col-6 col-lg-6 col-sm-8 col-xs-8 mb-1"><input type="search" class="custom-search form-control "
                    placeholder="<?php echo e(__('Search by name')); ?>...">
            </div>
            <div class="col-6 col-lg-2 mb-1">
                <select name="" id="" required class="form-control SlectBox">
                    <option value="" selected disabled><?php echo e(__('Select project')); ?></option>
                    <option value="">All </option>
                    <option value="">Architectural </option>
                    <option value="">Plumbing </option>
                    <option value="">Electrical </option>
                    <option value="">Vantilation </option>
                </select>
            </div>
            <div class="col-6 col-lg-2 col-sm-8 col-xs-8 mb-1">
                <button class="btn custom-button-outline btn-block "><i class="fe fe-search"></i>
                    <?php echo e(__('Filter')); ?></button>
            </div>
            <div class="col-6 col-lg-2 col-sm-8 col-xs-8 mb-1">
                <button class="btn custom-button btn-block">
                    <?php echo e(__('Reset')); ?></button>
            </div>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-lg-4">
        <div class="card ">
            <div class="card-body pb-2">
                <p class="text-success text-uppercase font-size-12 mb-2">#E101</p>
                <div class="media-body">
                    <h3 class="mb-0">Joe Root</h3>
                    <span class=" font-size-15 ">Architectural
                    </span>
                    <div class="card-body pt-2  p-0">
                        <div class="row align-items-center">
                            <div class="col-sm-auto text-left">
                                <p class="m-0"> <b>Since</b> : Jan 12, 2022</p>
                            </div>
                            <div class="col offset-sm-1 text-right">
                                <ul class="list-inline mb-0 ">
                                    <li class="list-inline-item ">
                                        <a href="javascript:;" class="text-muted d-inline-block" data-toggle="tooltip"
                                            data-placement="top" title="" data-original-title="Edit project buyer">
                                            <i class="uil uil-edit " data-toggle="modal" data-target="#editBuyer"></i>
                                        </a>
                                    </li>
                                    <li class="list-inline-item">
                                        <a href="javascript:;" class="text-muted d-inline-block btnDelete"
                                            data-toggle="tooltip" data-placement="top" title=""
                                            data-original-title="Delete project buyer">
                                            <i class="uil uil-trash "></i>
                                        </a>
                                    </li>
                                    <li class="list-inline-item">
                                        <a href="<?php echo e(route('project-buyer-detail')); ?>" class="text-muted d-inline-block"
                                            data-toggle="tooltip" data-placement="top" title=""
                                            data-original-title="View project buyer">
                                            <i class="uil uil-eye "></i>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- end card -->
    </div>
    <div class="col-lg-4">
        <div class="card ">
            <div class="card-body pb-2">
                <p class="text-danger text-uppercase font-size-12 mb-2">#E101</p>
                <div class="media-body">
                    <h3 class="mb-0">Eion Morgan </h3>
                    <span class=" font-size-15 ">Electrical
                    </span>
                    <div class="card-body pt-2  p-0">
                        <div class="row align-items-center">
                            <div class="col-sm-auto text-left">
                                <p class="m-0"> <b>Since</b> : Jan 12, 2022</p>
                            </div>
                            <div class="col offset-sm-1 text-right">
                                <ul class="list-inline mb-0 ">
                                    <li class="list-inline-item ">
                                        <a href="javascript:;" class="text-muted d-inline-block" data-toggle="tooltip"
                                            data-placement="top" title="" data-original-title="Edit project buyer">
                                            <i class="uil uil-edit " data-toggle="modal" data-target="#editBuyer"></i>
                                        </a>
                                    </li>
                                    <li class="list-inline-item">
                                        <a href="javascript:;" class="text-muted d-inline-block btnDelete"
                                            data-toggle="tooltip" data-placement="top" title=""
                                            data-original-title="Delete project buyer">
                                            <i class="uil uil-trash "></i>
                                        </a>
                                    </li>
                                    <li class="list-inline-item">
                                        <a href="<?php echo e(route('project-buyer-detail')); ?>" class="text-muted d-inline-block"
                                            data-toggle="tooltip" data-placement="top" title=""
                                            data-original-title="View project buyer">
                                            <i class="uil uil-eye "></i>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- end card -->
    </div>
    <div class="col-lg-4">
        <div class="card ">
            <div class="card-body pb-2">
                <p class="text-danger text-uppercase font-size-12 mb-2">#E103</p>
                <div class="media-body">
                    <h3 class="mb-0">James Anderson </h3>
                    <span class=" font-size-15 ">Vantilation
                    </span>
                    <div class="card-body pt-2  p-0">
                        <div class="row align-items-center">
                            <div class="col-sm-auto text-left">
                                <p class="m-0"> <b>Since</b> : Jan 12, 2022</p>
                            </div>
                            <div class="col offset-sm-1 text-right">
                                <ul class="list-inline mb-0 ">
                                    <li class="list-inline-item ">
                                        <a href="javascript:;" class="text-muted d-inline-block" data-toggle="tooltip"
                                            data-placement="top" title="" data-original-title="Edit project buyer">
                                            <i class="uil uil-edit " data-toggle="modal" data-target="#editBuyer"></i>
                                        </a>
                                    </li>
                                    <li class="list-inline-item">
                                        <a href="javascript:;" class="text-muted d-inline-block btnDelete"
                                            data-toggle="tooltip" data-placement="top" title=""
                                            data-original-title="Delete project buyer">
                                            <i class="uil uil-trash "></i>
                                        </a>
                                    </li>
                                    <li class="list-inline-item">
                                        <a href="<?php echo e(route('project-buyer-detail')); ?>" class="text-muted d-inline-block"
                                            data-toggle="tooltip" data-placement="top" title=""
                                            data-original-title="View project buyer">
                                            <i class="uil uil-eye "></i>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- end card -->
    </div>
    <div class="col-lg-4">
        <div class="card ">
            <div class="card-body pb-2">
                <p class="text-success text-uppercase font-size-12 mb-2">#E104</p>
                <div class="media-body">
                    <h3 class="mb-0">Core Anderson </h3>
                    <span class=" font-size-15 ">Stair reparing
                    </span>
                    <div class="card-body pt-2  p-0">
                        <div class="row align-items-center">
                            <div class="col-sm-auto text-left">
                                <p class="m-0"> <b>Since</b> : Jan 12, 2022</p>
                            </div>
                            <div class="col offset-sm-1 text-right">
                                <ul class="list-inline mb-0 ">
                                    <li class="list-inline-item ">
                                        <a href="javascript:;" class="text-muted d-inline-block" data-toggle="tooltip"
                                            data-placement="top" title="" data-original-title="Edit project buyer">
                                            <i class="uil uil-edit " data-toggle="modal" data-target="#editBuyer"></i>
                                        </a>
                                    </li>
                                    <li class="list-inline-item">
                                        <a href="javascript:;" class="text-muted d-inline-block btnDelete"
                                            data-toggle="tooltip" data-placement="top" title=""
                                            data-original-title="Delete project buyer">
                                            <i class="uil uil-trash "></i>
                                        </a>
                                    </li>
                                    <li class="list-inline-item">
                                        <a href="<?php echo e(route('project-buyer-detail')); ?>" class="text-muted d-inline-block"
                                            data-toggle="tooltip" data-placement="top" title=""
                                            data-original-title="View project buyer">
                                            <i class="uil uil-eye "></i>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- end card -->
    </div>
    <div class="col-lg-4">
        <div class="card ">
            <div class="card-body pb-2">
                <p class="text-success text-uppercase font-size-12 mb-2">#E105</p>
                <div class="media-body">
                    <h3 class="mb-0">Tim David </h3>
                    <span class=" font-size-15 ">Agriculture
                    </span>
                    <div class="card-body pt-2  p-0">
                        <div class="row align-items-center">
                            <div class="col-sm-auto text-left">
                                <p class="m-0"> <b>Since</b> : Jan 12, 2022</p>
                            </div>
                            <div class="col offset-sm-1 text-right">
                                <ul class="list-inline mb-0 ">
                                    <li class="list-inline-item ">
                                        <a href="javascript:;" class="text-muted d-inline-block" data-toggle="tooltip"
                                            data-placement="top" title="" data-original-title="Edit project buyer">
                                            <i class="uil uil-edit " data-toggle="modal" data-target="#editBuyer"></i>
                                        </a>
                                    </li>
                                    <li class="list-inline-item">
                                        <a href="javascript:;" class="text-muted d-inline-block btnDelete"
                                            data-toggle="tooltip" data-placement="top" title=""
                                            data-original-title="Delete project buyer">
                                            <i class="uil uil-trash "></i>
                                        </a>
                                    </li>
                                    <li class="list-inline-item">
                                        <a href="<?php echo e(route('project-buyer-detail')); ?>" class="text-muted d-inline-block"
                                            data-toggle="tooltip" data-placement="top" title=""
                                            data-original-title="View project buyer">
                                            <i class="uil uil-eye "></i>
                                        </a>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- end card -->
    </div>
</div>


<!-- Buyer modal content -->
<div id="addBuyer" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="createRoleModalLabel"
    aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="addBuyerLabel"><?php echo e(__('Add project buyer')); ?></h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label class="col-form-label"><?php echo e(__('Project buyer')); ?></label>
                    <select class="custom-select" required>
                        <option selected disabled><?php echo e(__('Select project buyer')); ?></option>
                        <option value="1">John Botham</option>
                        <option value="2">Sam Billing</option>
                        <option value="3">James Anderson</option>
                        <option value="3">Rory Burns</option>
                    </select>
                </div>
                <div class="form-group">
                    <label class="col-form-label"><?php echo e(__('Project')); ?></label>
                    <select class="custom-select" required>
                        <option selected disabled><?php echo e(__('Select project')); ?></option>
                        <option value="1">Agriculture</option>
                        <option value="2">Electrical</option>
                        <option value="3">Reparing stairs</option>
                    </select>
                </div>
                <div class="form-group">
                    <label class="col-form-label" for=""><?php echo e(__('Detail despcription')); ?> <span class="text-danger"></span></label>
                    <textarea name="" id="" cols="30" rows="2" required class="form-control"
                        placeholder="<?php echo e(__('Enter detail description')); ?>"></textarea>
                </div>
                <div class="form-group">
                    <div class="col-lg-12 col-sm-4">
                        <form action="/" method="post" class="dropzone" id="myAwesomeDropzone">
                            <div class="fallback">
                                <input name="file" type="file" multiple />
                            </div>

                            <div class="dz-message needsclick">
                                <i class="h1 text-muted  uil-cloud-upload"></i>
                                <h3><?php echo e(__('Drop files here or click to upload')); ?>.</h3>
                                <span class="text-muted font-13">( <?php echo e(__('drag’n’drop multiple photos and files to upload')); ?> )
                                </span>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn custom-button"><?php echo e(__('Save')); ?></button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

<!-- Buyer modal content -->
<div id="editBuyer" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="editRoleModalLabel"
    aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="editBuyerLabel"><?php echo e(__('Edit project buyer')); ?></h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="form-group">
                    <label class="col-form-label"><?php echo e(__('Project buyer')); ?></label>
                    <select class="custom-select" required>
                        <option selected disabled><?php echo e(__('Select project buyer')); ?></option>
                        <option value="1">John Botham</option>
                        <option value="2">Sam Billing</option>
                        <option value="3">James Anderson</option>
                        <option value="3">Rory Burns</option>
                    </select>
                </div>
                <div class="form-group">
                    <label class="col-form-label"><?php echo e(__('Project')); ?></label>
                    <select class="custom-select" required>
                        <option selected disabled><?php echo e(__('Select project')); ?></option>
                        <option value="1">Agriculture</option>
                        <option value="2">Electrical</option>
                        <option value="3">Reparing stairs</option>
                    </select>
                </div>
                <div class="form-group">
                    <label class="col-form-label" for=""><?php echo e(__('Detail despcription')); ?> <span class="text-danger"></span></label>
                    <textarea name="" id="" cols="30" rows="2" required class="form-control"
                        placeholder="<?php echo e(__('Enter detail description')); ?>"></textarea>
                </div>
                <div class="form-group">
                    <div class="col-lg-12 col-sm-4">
                        <form action="/" method="post" class="dropzone" id="myAwesomeDropzone">
                            <div class="fallback">
                                <input name="file" type="file" multiple />
                            </div>

                            <div class="dz-message needsclick">
                                <i class="h1 text-muted  uil-cloud-upload"></i>
                                <h3><?php echo e(__('Drop files here or click to upload')); ?>.</h3>
                                <span class="text-muted font-13">( <?php echo e(__('drag’n’drop multiple photos and files to upload')); ?> )
                                </span>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn custom-button"><?php echo e(__('Save')); ?></button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

<!-- end row -->


<!-- pagination -->
<div class="row">
    <div class="col-4"></div>
    <div class="col-4">
        <ul class="pagination  mb-3 flex-wrap">
            <li class="page-item page-prev disabled">
                <a class="page-link" href="javascript:;" tabindex="-1"><?php echo e(__('Prev')); ?></a>
            </li>
            <li class="page-item active"><a class="page-link" href="javascript:;">1</a></li>
            <li class="page-item"><a class="page-link" href="javascript:;">2</a></li>
            <li class="page-item"><a class="page-link" href="javascript:;">3</a></li>
            <li class="page-item"><a class="page-link" href="javascript:;">4</a></li>
            <li class="page-item"><a class="page-link" href="javascript:;">5</a></li>
            <li class="page-item"><a class="page-link" href="javascript:;">6</a></li>
            <li class="page-item page-next">
                <a class="page-link" href="javascript:;"><?php echo e(__('Next')); ?></a>
            </li>
        </ul>
    </div>
    <div class="col-4"></div>
</div>
<!-- end row -->


<?php $__env->stopSection(); ?>

<?php $__env->startSection('script-bottom'); ?>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.1.10/dist/sweetalert2.all.min.js"></script>

<script type="text/javascript">
    // Delete

    $(document).on('click', '.btnDelete', function (e) {
        var member = $(this).attr('id');
        Swal.fire({
                title: "Are you sure?",
                text: "You will not be able to recover this buyer!",
                type: "warning",
                buttons: true,
                confirmButtonColor: "#ff5e5e",
                confirmButtonText: "Yes, delete it!",
                closeOnConfirm: false,
                dangerMode: true,
                showCancelButton: true
            })
            .then((deleteThis) => {
                if (deleteThis.isConfirmed) {
                    $.ajax({
                        url: '',
                        type: "GET",
                        dataType: "JSON",
                        data: {
                            member: member

                        },
                        success: function (response) {

                            if (response["status"] == "fail") {
                                Swal.fire("Failed!", "Failed to delete buyer project.",
                                "error");
                            } else if (response["status"] == "success") {
                                Swal.fire("Deleted!", "Buyer project has been deleted.",
                                    "success");

                                // Using .reload() method.
                                location.reload();
                            }
                        },
                        error: function (error) {
                            console.log(error);
                        },
                        async: false
                    });
                } else {
                    Swal.close();
                }
            });
    });

</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH G:\php\www\laravel\baramdat\hvg\hvg\resources\views/general/project/project-buyer.blade.php ENDPATH**/ ?>