KUJUNTI.ID MINISH3LL
Path : /var/www/html/jewelry-pos/resources/views/reports/
(S)h3ll Cr3at0r :
F!le Upl0ad :

B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H

Current File : /var/www/html/jewelry-pos/resources/views/reports/adjustment-report-print.blade.php


@extends('layouts.admin-main')
@section('content')
    <div class="" style="display: flex;justify-content: center;width: 100%;height: 100%;background-color: #eee;">
        <div class="" style="height: 100%;width: 100%;">
            <div class="text-center bg-white print" id="print" style="width: 100%;height: 100%;margin: auto;color: rebeccapurple">
                <div class="row" style="display: flex;justify-content: center;align-items: center;color: rebeccapurple;">
                    <div class="col-sm-6 col-xl-6 p-2" style="border: 1px solid rebeccapurple;display: flex;justify-content: center;align-items: center;">
                        <h1 style="font-weight: bold;font-size: 24px">{{$settings_->shop_name}}</h1>
                    </div>
                </div>
                <div class="row m-2">
                    <div class="col-sm-6 col-xl-6 text-left mt-4" style="font-size: 14px;">
                        {{__('message.cashier')}} : <b>{{Auth::user()->name}}</b>
                    </div>
                    <div class="col-sm-6 col-xl-6 text-right mt-4" style="font-size: 14px;">
                        {{__('message.invoice date')}} : <b>{{now()->format('d-m-Y H:i')}}</b>
                    </div>
                </div>
                <div class="row m-2">
                    <div class="col-sm-8 col-xl-8 text-left mt-4" style="font-size: 14px">
                        {{__('message.location')}} : <b>{{$settings_->address}}</b>
                    </div>
                    <div class="col-sm-4 col-xl-4 text-right mt-4" style="font-size: 14px;">
                        {{__('message.phone number')}} : <b>{{$settings_->phone}}</b>
                    </div>
                </div>
{{--                <div class="row m-2 text-left">--}}
{{--                    @if($q)--}}
{{--                        <div class="col-sm-6 col-xl-6 mt-4">--}}
{{--                            {{__('message.grn')}} : <b>{{$q}}</b>--}}
{{--                        </div>--}}
{{--                    @endif--}}
{{--                </div>--}}
                <div class="row mt-4" style="display: flex;justify-content: center;align-items: center;color: rebeccapurple;">
                    <div class="col-sm-6 col-xl-12 p-2 text-center" style="display: flex;justify-content: center;align-items: center;">
                        <h1 style="font-weight: bold;border-bottom: 2px solid rebeccapurple;font-size: 18px" class="">{{__('message.adjustment report')}}</h1>
                    </div>
                </div>
                <div class="panel-container show">
                    <div class="d-flex flex-column h-100">
                        <div class="h-auto">
                            <table id="example" class="table table-bordered table-hover table-striped w-100">
                                <thead class="bg-fusion-50 text-center">
                                <tr>
                                    <th>#</th>
                                    <th>{{__('message.original invoice')}}</th>
                                    <th>{{__('message.grn')}}</th>
                                    <th>{{__('message.part number')}}</th>
                                    <th>{{__('message.product category')}}</th>
                                    <th class="text-center">{{ __('message.product name') }}</th>
                                    <th>{{__('message.qty')}}</th>
                                    <th>{{__('message.cost')}}</th>
                                    <th>{{__('message.original wages')}}</th>
                                    <th>{{__('message.total cost supplier')}}</th>
                                    <th>{{__('message.weight')}}</th>
                                    <th>{{__('message.gold weight')}}</th>
                                    <th>{{__('message.description')}}</th>
                                    <th>{{__('message.diamond size')}}</th>
                                    <th class="text-center">{{ __('message.note') }}</th>
                                    <th class="text-center">{{ __('message.user') }}</th>
                                    <th class="text-center">{{ __('message.updated at') }}</th>
                                </tr>
                                </thead>
                                <tbody>
                                <?php
                                $total_cost_fee = 0;
                                $total_costs = 0;
                                $total_sum_costs = 0;
                                $total_weight = 0;
                                ?>
                                @foreach($productQtyHistories as $index => $productQtyHistory)
                                    <tr class="text-center @if($productQtyHistory->qty<0) inactive @endif">
                                        <td>
                                            {{$index+1}}
                                        </td>
                                        <td>{{$productQtyHistory->product?->original_invoice??''}}</td>
                                        <td>
                                            {{$productQtyHistory->grn}}
                                        </td>
                                        <td>
                                            {{$productQtyHistory->product?->part_number}}
                                        </td>
                                        <td>
                                            {{$productQtyHistory->product->productCategory->name??''}}
                                        </td>
                                        <td>
                                            {{$productQtyHistory->product->name??''}}
                                        </td>
                                        <td class="credit">
                                            {{($productQtyHistory->qty)}}
                                        </td>
                                        <td class="credit">
                                            @if($productQtyHistory->for_sale == 0 && $productQtyHistory->product_cost)
                                                {{number_format($productQtyHistory->product_cost??0 , 2)}} {{$currency_->currency_symbol}}
                                            @else
                                                {{number_format($productQtyHistory->product?->cost($productQtyHistory->goldWeight()) - $productQtyHistory->product?->cost_wagesInWeight() , 2)}} {{$currency_->currency_symbol}}
                                            @endif
                                        </td>
                                        <td class="credit">
                                            {{number_format($productQtyHistory->product?->cost_wagesInWeight() , 2)}} {{$currency_->currency_symbol}}
                                        </td>
                                        <td class="credit">
                                            @if($productQtyHistory->for_sale == 0 && $productQtyHistory->product_cost)
                                                {{number_format(($productQtyHistory->qty)*$productQtyHistory->product_cost??0 , 2)}} {{$currency_->currency_symbol}}
                                            @else
                                                {{number_format(($productQtyHistory->qty)*$productQtyHistory->product?->cost($productQtyHistory->goldWeight()) , 2)}} {{$currency_->currency_symbol}}
                                            @endif
                                        </td>
                                        <td class="credit">
                                            @if($productQtyHistory->weight)
                                                {{number_format($productQtyHistory->weight??0 ,2)}}
                                            @else
                                                {{number_format($productQtyHistory->product?->weight??0 ,2)}}
                                            @endif
                                        </td>
                                        <td>
                                            @if($productQtyHistory->weight)
                                                {{number_format($productQtyHistory->goldWeight()??0 ,2)}}
                                            @else
                                                {{number_format($productQtyHistory->product?->goldWeight()??0 ,2)}}
                                            @endif
                                        </td>
                                        <td>
                                            {!!$productQtyHistory->product?->description!!}
                                        </td>
                                        <td>
                                            {!!$productQtyHistory->product?->diamond_size!!}
                                        </td>
                                        <td>
                                            {{$productQtyHistory->note??''}}
                                        </td>
                                        <td>
                                            <a href="{{route('users.show' , $productQtyHistory->user_id)}}" class="text-dark">
                                                {{$productQtyHistory->user->name??''}}
                                            </a>
                                        </td>
                                        <td>
                                            {{$productQtyHistory->created_at->format('d-m-Y H:i')}}
                                        </td>
                                    </tr>
                                        <?php
                                        $total_cost_fee += $productQtyHistory->product?->cost_wagesInWeight();
                                        $total_costs += $productQtyHistory->product?->cost($productQtyHistory->goldWeight()) - $productQtyHistory->product?->cost_wagesInWeight();
                                        $total_sum_costs += ($productQtyHistory->qty)*$productQtyHistory->product?->cost($productQtyHistory->goldWeight());
                                        if($productQtyHistory->weight) {
                                            $total_weight += $productQtyHistory->weight;
                                        }else{
                                            $total_weight += $productQtyHistory->product?->weight;
                                        }
                                        ?>
                                @endforeach
                                <tr class="table-bordered">
                                    <td colspan="6" rowspan="3" class="credit">
                                        <div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
                                            {{__('message.total')}} :
                                        </div>
                                    </td>
                                    <td colspan="1" class="credit text-center">
                                        <div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
                                            {{($productQtyHistories->sum('qty'))}}
                                        </div>
                                    </td>
                                    <td colspan="1" class="credit text-center">
                                        <div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
                                            {{number_format($total_costs, 2)}} {{$currency_->currency_symbol}}
                                        </div>
                                    </td>
                                    <td colspan="1" class="credit text-center">
                                        <div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
                                            {{number_format($total_cost_fee , 2)}} {{$currency_->currency_symbol}}
                                        </div>
                                    </td>
                                    <td class="credit text-center" colspan="1">
                                        <div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
                                            {{number_format($total_sum_costs , 2)}} {{$currency_->currency_symbol}}
                                        </div>
                                    </td>
                                    <td class="credit text-center" colspan="1">
                                        <div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
                                            {{number_format($total_weight , 2)}}
                                        </div>
                                    </td>
                                    <td colspan="5" class="credit text-center">
                                        <div class="d-flex justify-content-center align-items-center" style="margin: 1rem 0;">
                                        </div>
                                    </td>
                                </tr>

                                </tbody>
                            </table>
                            <div class="row mt-10-rem" style="margin-top: 5rem !important;">
                                <div class="col-1">

                                </div>
                                <div class="col-3 mt-10-rem" style="margin-top: 5rem !important;">
                                    <h1 class="border-bottom"></h1>
                                    <span style="font-weight:bold;color: black">{{__('message.prepare by')}} : </span>
                                </div>
                                <div class="col-4">

                                </div>
                                <div class="col-3 mt-10-rem" style="margin-top: 5rem !important;">
                                    <h1 class="border-bottom"></h1>
                                    <span style="font-weight:bold;color: black">{{__('message.confirm by')}} : </span>
                                </div>
                                <div class="col-1">

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div style="width: 100%;display: flex;justify-content: space-between;align-items: center">
                    <div class="text-center mt-4 ml-4 notPrint" style="width: 5%;; height: 50%;">
                        <a href="{{route('adjustment-report.index')}}" id="back" name="back" class="btn-sm btn-danger mt-6 fw-bold notPrint" style="cursor: pointer;color: white;">Back</a>
                    </div>
                    <div class="text-center mt-4 mr-4 notPrint" style="width: 5%;; height: 50%;">
                        <a id="print" name="print" class="btn-sm btn-info mt-6 fw-bold notPrint" onclick="return print()" style="cursor: pointer;color: white;">Print</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
@section('scripts')
    <script>
        window.print();
        setTimeout("closePrintView()", 1000);
        function closePrintView(){
            window.location.href = "{{route('adjustment-report.index')}}?start_date={{$start_date}}&end_date={{$end_date}}&search={{$search}}&product_category_id={{$product_category_id}}&paginate={{$paginate}}";
        }
    </script>
    <script>
        $(document).ready(function() {
            $("#js-nav-menu").removeClass('active');
            $("#js-nav-menu li ul li").removeClass('active');
            $("#menu_adjustment_report").addClass('active')
        })
    </script>
@endsection

© KUJUNTI.ID