Path : /var/www/html/jewelry-pos/resources/views/sales/ |
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/sales/list.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="text-center mt-4 ml-4 notPrint" style="width: 5%;; height: 50%;">--}} {{-- <a href="{{route('sales.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="" 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: end;align-items: center;color: rebeccapurple">--}} {{-- <div class="col-sm-4 col-xl-4 m-6 text-left" style="display:flex;justify-content: center;align-items: center;font-size: 14px">--}} {{-- GRN Number--}} {{-- </div>--}} {{-- </div>--}} <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="mt-4 ml-2 mr-2" style="display: flex;justify-content: center;align-items: center;color: rebeccapurple"> <div class="row" style="width: 98%;"> <div class="col-sm-6 col-xl-8 text-left" style="font-size: 14px;"> {{__('message.cashier')}} : <b>{{$cashie}}</b> </div> <div class="col-sm-6 col-xl-4 text-right" style="font-size: 14px"> {{__('message.invoice date')}} : <b>{{now()->toDateTimeString()}}</b> </div> </div> </div> <div class="mt-4 ml-2 mr-2" style="display: flex;justify-content: center;align-items: center"> <div class="row" style="width: 98%;"> <div class="col-sm-8 col-xl-8 text-left" style="font-size: 14px"> {{__('message.location')}} : <b>{{$settings_->address}}</b> </div> <div class="col-sm-4 col-xl-4 text-right" style="font-size: 14px"> {{__('message.phone number')}} : <b>{{$settings_->phone}}</b> </div> </div> </div> <div class="mt-4 ml-2 mr-2" style="display: flex;justify-content: center;align-items: center"> <div class="row" style="width: 98%;"> <div class="col-sm-8 col-xl-8 text-left" style="font-size: 14px"> <span class="mr-4"> {{__('message.start date')}} {{date('d/m/y' , strtotime($start_date))}} </span> <span class="ml-4"> {{__('message.to date')}} {{date('d/m/y' , strtotime($end_date))}} </span> </div> </div> </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.sales invoice')}}</h1> </div> </div> <div class="row ml-2 mt-2" style="width: 98%;display: flex;justify-content: center;align-items: center"> <table class="table table-bordered table-hover table-striped"> <thead class="bg-fusion-50 text-center"> <tr> <th>#</th> <th class="text-center">{{ __('message.part number') }}</th> <th>{{ __('message.product category') }}</th> <th>{{ __('message.name') }}</th> <th>{{ __('message.sales price') }}</th> {{-- <th>{{ __('message.price') }}</th>--}} <th>{{ __('message.usd price') }}</th> <th>{{ __('message.khr price') }}</th> <th>{{ __('message.thb price') }}</th> <th>{{ __('message.cost') }}</th> <th>{{ __('message.selling rate') }}</th> <th>{{ __('message.selling cost') }}</th> <th>{{ __('message.qty') }}</th> <th>{{ __('message.discount') }}</th> <th>{{ __('message.weight') }}</th> <!-- <th>{{ __('message.gold weight') }}</th> --> <th>{{ __('message.wages') }}</th> <th>{{ __('message.original wages') }}</th> <!-- <th>{{ __('message.purity upgrade to') }}</th> --> <th>{{ __('message.selling purity') }}</th> <th>{{ __('message.diamond size') }}</th> <!-- <th>{{ __('message.description') }}</th> --> <th>{{ __('message.supplier rate') }}</th> <!-- <th>{{ __('message.image') }}</th> --> <!-- <th>{{ __('message.user') }}</th> --> <th>{{ __('message.created date') }}</th> </tr> </thead> <tbody> @foreach ($sales as $index => $sale) <tr> <td>{{ $index+1 }}</td> <td class="text-center">{{$sale->part_number}}</td> <td> {{$sale->productCategory->name ?? ''}} {{-- {{$sale->productCategoryNameUpgrade() ?? ''}}--}} </td> <td> {{ $sale->name ??''}} </td> <td> {{number_format($sale->sales_price , 2)}} {{$currency_->currency_symbol}} </td> <td class="credit text-center"> {{ number_format($sale->usd_amount ?? 0 , 2)}} {{$currency_->currency_symbol}} </td> <td class="credit text-center"> {{ number_format($sale->khr_amount ?? 0 ,2)}} ៛ </td> <td class="credit text-center"> {{ number_format($sale->thb_amount ?? 0 , 2)}} B </td> <td class="credit"> {{ number_format($sale->cost(), 2) }} {{$currency_->currency_symbol}} </td> <td class="credit"> {{ number_format($sale->selling_rate, 4) }} {{$currency_->currency_symbol}} </td> <td class="credit"> {{ number_format($sale->selling_cost, 2) }} {{$currency_->currency_symbol}} </td> <td class="credit"> {{ $sale->qty??0 }} </td> <td class="credit"> {{ number_format($sale->discount, 2) }} {{$currency_->currency_symbol}} </td> <td> {{-- {{ number_format($sale->weight??0 , 2) }}--}} {{ number_format($sale->product->weight??0 , 2) }} </td> <!-- <td> {{-- {{ number_format($sale->goldWeight() , 2) }}--}} {{ number_format($sale->goldWeight() , 2) }} </td> --> <td> {{number_format($sale->wages??0 , 2)}} </td> <td> {{number_format($sale->original_wages??0 , 2)}} </td> <!-- <td> @if($sale->purity_upgrade_to) {{$sale->purity_upgrade_to??''}} @endif </td> --> <td> @if($sale->selling_purity) {{$sale->selling_purity??''}} @endif </td> <td> {!!$sale->diamond_size !!} </td> <!-- <td> {!! $sale->description !!} </td> --> <td> {{$sale->supplier_rate}} </td> <!-- <td> {{-- {{$product->image}}--}} <div class="col-xs-12 col-sm-10"> <div class="d-flex justify-content-centers"> @if($sale->image) <img src="{{asset($sale->image)}}" style="width:55px;"> @else {{-- {{ __('message.no image') }}--}} @endif {{-- <img src="{{ !empty($product->image) ? asset($product->image) : asset('images/no_image.png') }}" alt="image" style="width: 10rem;"--}} {{-- class="border border-top border-right border-bottom border-left">--}} </div> </div> </td> --> <!-- <td> {{$sale->user->name ?? '-'}} </td> --> <td> {{ $sale->created_at->format('d/m/Y H:i') }} </td> </tr> @endforeach </tbody> </table> </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('sales.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 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> @endsection @section('scripts') <script> window.print(); setTimeout("closePrintView()", 1000); function closePrintView(){ window.location.href = "{{route('sales.index')}}?start_date={{$start_date}}&end_date={{$end_date}}&search={{$search}}"; } </script> <script> $(document).ready(function() { $("#js-nav-menu").removeClass('active'); $("#js-nav-menu li ul li").removeClass('active'); // $("#menu_setup_list").addClass('active open'); // $("#collapse_setup").addClass('collapse in') // $("#menu_product").addClass('active') $("#menu_sales").addClass('active') }) </script> @endsection