Spiral

Spiral

Member Since 7 Months Ago

Experience Points
6,360
Total
Experience

3,640 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
12
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 2
6,360 XP
Oct
06
2 weeks ago
Activity icon

Replied to Why Are Coming All Checkboxes With Checked Value Where As Some Are Checked

Well..I'm reading from laravel documentations Can you give example from my code which table I will use withpivot & how can call this in blade.. plz give me example

Activity icon

Replied to Why Are Coming All Checkboxes With Checked Value Where As Some Are Checked

ProductUser is a pivot table in which project_id, user_id, is_active attribute

Both Models Project & users have belongsToMany Relationship

I want to get is_active attribute from the pivot table where I'm saving request data

Activity icon

Replied to Why Are Coming All Checkboxes With Checked Value Where As Some Are Checked

Thanks, @snapey for replying me...

I have a table in which I have product_id, user_id & is_active attributes when clicking on any checkbox then in request sending product_id,user_id & is_active will 1 with the help of ajax request

I want to show checked checkboxes that the admin will see that how many users I have send notification

Activity icon

Started a new Conversation Why Are Coming All Checkboxes With Checked Value Where As Some Are Checked

You can see my code I don't understand that's why are coming to all checkboxes with checked value whereas all checkboxes are checked

You can see...

Controller Code

public function showProduct($product_id, Request $request)
{
	$users = User::query()->get();
	foreach ($users as $user) {
            $products = ProductUser::where('product_id', $product_id)
                                        ->where('user_id', $user->id)
                                        ->get();
        }

    return view('products.show', compact('products', 'users'));
}

Blade Code

<div class="modal fade myModal" id="producttUsers">
    <div class="modal-dialog modal-dialog-300">
        <div class="modal-content ">
            <div class="modal-header">
                <h4 class="modal-title">Send Product Active Notification</h4>
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            </div>
            <div class="modal-body">                    
                @foreach($users as $user)
                    @foreach($products as $product)                
                        <div class="custom-control1">
                            <div class="checkbox">
                                <label>
                                    <input type="checkbox" class="custom-control-input" name="is_active" {{ @$product->is_active == 1 ? 'checked' : '' }}>
                                   {{ $user->name }}
                                </label>
                            </div>
                        </div>
                    @endforeach                                  
                @endforeach
            </div>
        </div>
    </div>
</div>
Activity icon

Replied to How To Add New Value To Database Column Without Deleting Old Data In Laravel

Thanks a lot, @tykus bro... for helping me I have solved my email problem after that I will move on the listing area and will delete one by one from the column...

Activity icon

Replied to How To Add New Value To Database Column Without Deleting Old Data In Laravel

No bro first of all saving the emails where admin will add then on new request will send email to these emails

Activity icon

Replied to How To Add New Value To Database Column Without Deleting Old Data In Laravel

@newbie360 Bro... this will not use for the condition it's will use for sending email to which are adding in the products table and I want to email to these emails

Activity icon

Replied to How To Add New Value To Database Column Without Deleting Old Data In Laravel

@tykus bro... I want & need a comma-separated string ...

Bro... I'm asking when I'm saving

$newEmail = '[email protected]';
$user = User::find(1);
$user->emails = $user->emails . ', ' . $newEmail;
$user->save();

then storing this type of string in the database

, [email protected], [email protected]

when I'm sending an email with explode the string

$emails = explode(', ', $model->emails);
Mail::to($emails)->send(new ProductsMail(  ));

then giving error Swift_RfcComplianceException: Address in mailbox given [, [email protected], [email protected]] does not comply with RFC 2822

Activity icon

Replied to How To Add New Value To Database Column Without Deleting Old Data In Laravel

Bro... in other thread, I'm understanding but when adding an email then giving comma & space at the beginning so giving problem when sending an email

$emails = explode(', ', $users->emails); => for sending email but 
Activity icon

Replied to How To Add New Value To Database Column Without Deleting Old Data In Laravel

@tykus bro... How can remove the first email , comma & space and save into the database

, [email protected], [email protected]

because when I sending the email then giving error Swift_RfcComplianceException: Address in mailbox given [] does not comply with RFC 2822, 3.6.2. I have also using explode but not luck

Activity icon

Replied to How To Add List Separate Values Of One Attribute And Could Delete Separate

Bro, I want to add many emails in this column so that I will send email to these emails one time

Activity icon

Started a new Conversation How To Add List Separate Values Of One Attribute And Could Delete Separate

I have this type of list in the emails column & I want to list separately in the list table so that when deleting one email from the emails then only will delete one email

How can solve this logic? plz give me the solution so that I could solve my problem

I have this type of column in the database

id       | emails
--------|------------   
1        |[email protected], [email protected], [email protected]  
--------|------------  
2       | [email protected]

and I want to list the above three emails one by one in the list so that i will delete one email from whole three emails

you can see the listing

id       | emails
--------|------------   
1        |[email protected]  `` delete icon``
--------|------------  
1       |  [email protected] `` delete icon``
--------|------------  
1       |  [email protected]  `` delete icon``
Activity icon

Replied to How To Add New Value To Database Column Without Deleting Old Data In Laravel

Thanks, a lot @tykus brother you have solved my problem, but one more question with you

a I want also list this array with separate array with delete one by one in listing

Activity icon

Started a new Conversation How To Add New Value To Database Column Without Deleting Old Data In Laravel

I want to add new values in database column without deleting old value.

How can manage this in laravel. Plz give me the solution so that I could solve this.

id       | emails
--------|------------   
1        |[email protected], [email protected], [email protected]  
--------|------------  
2       | [email protected]
Oct
02
3 weeks ago
Activity icon

Started a new Conversation Validation Should Show If Password Write Otherwise Should Not Show

I want to show validation flash message if the user will write password , If user will not write password then should not show validation message

How can make this type to validation , Plz give me a solution

$this->validate($request, [
                'name' => 'required',
                'email' => 'required',
                'password' => 'required_if:password|min:6' =>  ``This is wrong way which is not working``
            ]);
Sep
30
3 weeks ago
Activity icon

Started a new Conversation OrderColumn For Sorting Not Working In Yajra Datatable Using In Laravel

OrderColumn not working for sorting the list according to updated_at but not working.

coming error Method Yajra\DataTables\CollectionDataTable::orderColumn does not exist.

This is my code you can see

$product = Product::query()->get();

return Datatables::of($product )
            ->orderColumn('updated_at', 'DESC')
            ->make(true);

Javascript code

<script>
        $(document).ready(function(){
            var columns = [
                { 
                    data: 'name', 
                    name: 'name', 
                    searchable: true 
                },
            columns.push({
                    data: 'action', 
                    name: 'action',                      
                    orderable: false,
                    searchable: "false",
                    className: "text-center"
                });
            $('#product-table').DataTable({  
                pageLength: 25,              
                processing: true,
                serverSide: true,                                                 
                ajax: {
                    url: '{{ route('products.dt') }}',
                },
                columns: columns,
            });                                                           
        });
    </script>
Sep
28
4 weeks ago
Activity icon

Awarded Best Reply on I Want To OrderBy('updated_at', 'asc') In Laravel Using Datatables

$product= Product::query()->orderBy('updated_at', 'asc')

Activity icon

Replied to I Want To OrderBy('updated_at', 'asc') In Laravel Using Datatables

$product= Product::query()->orderBy('updated_at', 'asc')

Activity icon

Started a new Conversation I Want To OrderBy('updated_at', 'asc') In Laravel Using Datatables

I'm using orderBy query but not working

You can my code

$product= Product::query()->orderBy('updated_at', 'asc')->get();
Sep
16
1 month ago
Activity icon

Started a new Conversation How Can Get Last 10 Character Of String From Database

I want to list only 10 characters of the list from the database...

2484b3030a8bfe99c59b381f7670a20dcb2cf6c7

Sep
11
1 month ago
Activity icon

Replied to How Can Take Multiple Data-id In For Ajax In The Input Field

Thanks a lot, @sinnbeck brother for helping me!!

Activity icon

Replied to How Can Take Multiple Data-id In For Ajax In The Input Field

Brother... But when using the GET method than working fine

Activity icon

Replied to How Can Take Multiple Data-id In For Ajax In The Input Field

Thanks @sinnbeck brother for repy me..

in console.log coming both project_id, user_id correct but giving one error you can see

exception: "Symfony\Component\HttpKernel\Exception\HttpException"
file: "E:\wamp64\www\Deployments\deployments\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php"
line: 226
message: "CSRF token mismatch."
Activity icon

Replied to How Can Take Multiple Data-id In For Ajax In The Input Field

@silencebringer bro for replying Me...

Problem is that user_id not fetching in controller saving project_id in the user_id attribute

you can check my controller code

public function boxes(Request $request)
    {
        $project = Project::create([
            'project_id' => $request->project_id,
            'user_id' => $request->user_id
        ]);

        return response()->json(['message' => 'Successfully added!'], 200);
    }

Can I send user_id with value Can you give me solution how can send user_id in ajax request as a value

<input type="text" value="{{ $user->id }}">

Activity icon

Started a new Conversation How Can Take Multiple Data-id In For Ajax In The Input Field

I want to take project_id & user_id and sent to the controller in the input field when clicking on the checkboxes

You can see my code

@foreach($users as $user)
    <div class="custom-control custom-switch">
        <input type="checkbox" class="custom-control-input admin-notify-switchs" name="adminNotify" data-id="{{ $project->id }}" data-uid="{{ $user->id }}" id="{{ $user->id }}">
        <label class="custom-control-label" for="{{ $user->id }}">{{ $user->name }}</label>
  </div>   
@endforeach

Ajax

$(document).ready(function(){            
            $('.admin-notify-switchs').click(function () {
                let adminNotify = $(this).prop('checked') === true ? 1 : 0;
                let project_id = $(this).data('id');
                let user_id = $(this).data('uid');
                $.ajax({
                    type: "GET",
                    dataType: "json",
                    url: '{{ route('admin.notifications') }}',
                    data: {'adminNotify': adminNotify, 'project_id': project_id, 'user_id': user_id},
                    success: function (data) {
                        toastr.options.closeButton = true;
                        toastr.options.closeMethod = 'fadeOut';
                        toastr.options.closeDuration = 100;
                        toastr.success(data.message); 
                    }
                });
            });
        });
Activity icon

Replied to How Can Fetch Data From Encoded Array In Blade File

<?php 
       $server = json_decode($project->servers); 
?>

<td>{{ $server->{'name'} }}</td>
Activity icon

Replied to How Can Send Emails With Comma Separated

@automica @sergiu17 Thanks brothers for replying me. I got it

Sep
09
1 month ago
Activity icon

Started a new Conversation How Can Send Emails With Comma Separated

I have multiple emails in one column..

How can send email these email with comma separated? i have these email in column

[email protected] [email protected]
$emails = explode(',', $project->emails);

    if (!empty($project->emails)) {
      Mail::to($emails)->send(new ProjectMail( $project ));  
    }
coming this error ```Swift_RfcComplianceException: Address in mailbox given [[email protected] [email protected]] does not comply with RFC 2822, 3.6.2.
Sep
07
1 month ago
Activity icon

Replied to How Can Fetch Data From Encoded Array In Blade File

@automica Thanks bro replying to me...

Bro I'm saving servers encoded JSON array in the project table with attribute servers and I want to get the only name from the servers array

How can use this variable in the blade file

Activity icon

Started a new Conversation How Can Fetch Data From Encoded Array In Blade File

I have sending array in the object ... How can fetch some data from array in blade file

Controller

public function index(Request $request)
    {
    	$projects = Project::get();
    	return view('projects.index', compact('projects'));
    }

Blade file

@foreach($projects as $project)
    <tr>
        <td>{{ $project->name }}</td>
        <td>{{ $project->servers }}</td>   
    </tr>
@endforeach

servers in a encoded array which are saving in database in which should only name which I will list

I have data in servers array after <?php dd(json_decode($project->servers)); ?>

{#1232 ▼
  +"id": 494506
  +"identifier": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"
  +"name": "test"
  +"protocol_type": "ftp"
  +"server_path": "htdocs"
  +"auto_deploy_url": "https://adamw.deployhq.com/deploy/codebase-project/to/test/xxxxxxxxxxx"
  +"last_revision": "abcdef123456"
  +"preferred_branch": "master"
  +"branch": null
  +"notify_email": null
  +"server_group_identifier": null
  +"hostname": "ftp.test.com"
  +"username": "test"
  +"port": 21
  +"passive": true
  +"force_hidden_files": false
}
Jul
20
3 months ago
Activity icon

Started a new Conversation How Can Make This Type Of Array In Swagger Php

I want to make this type of array in swagger php version 3 can you help about this i have 5 parameters in whcih one is base64 parameter in json body

{
  "products": [
    {
      "first_name": "string",
      "last_name": "string",
      "email": "string",
      "phone": "string",
      "resume": "string" ==> here i will send base64 format of resume file
    }
  ]
}

This code using but giving error products must be an array where as resume passing in base64 format

/**
* @OA\Schema(
*   schema="ProductRequest",
*   required={"products"},
*   @OA\Property(
*       property="products",
*       type="array",
*       @OA\Items(
*           @OA\Property(property="first_name", type="string"),
*           @OA\Property(property="last_name", type="string"),
*           @OA\Property(property="email", type="string"),
*           @OA\Property(property="phone", type="string"),
*           @OA\Property(property="resume", type="string", format="byte"),
*       ),
*    )
* )
*/

/**
* @OA\RequestBody(
*   request="Product",
*   required=true,
*   description="Bulk products Body",
*   @OA\MediaType(
*     mediaType="multipart/form-data",
*     @OA\Schema(ref="#/components/schemas/ProductRequest")
*   )
* )
*/

/**
* @OA\Post(
*   path="/prodcuts/save",
*   tags={"Prodcuts"},
*   summary="Post bulk products",
*   description="Return bulk products",
*      @OA\Parameter(
*          name="id",
*          required=true,
*          in="query",
*          @OA\Schema(
*              type="string",
*          )
*     ),
*   @OA\RequestBody(ref="#/components/requestBodies/Product"),
*   @OA\Response(
*       response=200,
*       description="Successful operation",
*   ),
* )
*/
Activity icon

Replied to How Can Get Filename From Intervention Image After Invert

@tinfoilman how can make filename so that i could save this in storage folder and database

Activity icon

Started a new Conversation How Can Get Filename From Intervention Image After Invert

I want to make a filename so that i will save the file path in database and file name in storage folder Have to some solution so that i could solve my problem

if ($request->file('logo')) {
    $input['logo_path'] = $request->file('logo')->store('public/logo');
    $file_name = basename($input['logo_path']);
    $file_path = storage_path('app\public\logo\' . $file_name);           

    $default_color = 'fff';
    $colorCode = simple_color_thief($file_path, $default_color);

    if ($colorCode == 'fff') {
        $img = Image::make($file_path)->invert();

        $filename = time() . '.'. $img->getClientOriginalExtension(); => this not working 

        $inverted_path = storage_path("public/logo/").$filename; 
        $img->save($inverted_path);
        $input['inverted_image'] = "public/logo/".$filename;
        Product::create($input);
    }            
}
Jul
03
3 months ago
Jul
01
3 months ago
Activity icon

Started a new Conversation Allowed Memory Size Of 1610612736 Bytes Exhausted (tried To Allocate 4096 Bytes)

I have changed memory_limit = 128M to memory_limit = 1G but getting same error

How can fix this plz give me the solution

./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)

Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/DependencyResolver/Solver.php on line 223

E:\wamp64\www>php -r "echo ini_get('memory_limit').PHP_EOL;"
1G
Jun
29
3 months ago
Activity icon

Replied to Anybody Have Specialization In Swagger For Api Docs I Have A Question

Creating different Swagger docs is perfectly acceptable. You could do a single doc and prefix things by section and ability or just use separate docs as you are doing. Neither is a problem or best practice imo.

Can you provide me plateform or code so that i will solve my problem with the help of you as you are saying same i want

Activity icon

Replied to Anybody Have Specialization In Swagger For Api Docs I Have A Question

Trying the best process so that you understand the my question

  1. I have a project in laravel apis

  2. These laravel Apis are for different services/client e.g integrated some services/company in this project

  3. I have all Apis in one swagger.json file

  4. Some Apis which no need for some services/Companies which are integrated so that i want to provide only their need Apis

  5. As well as i want to provide only these Apis docs in swagger which they want not other services Apis

bro I will my best try that you wil understand

Jun
28
3 months ago
Activity icon

Replied to Anybody Have Specialization In Swagger For Api Docs I Have A Question

Copy you awnser which i want Creating different Swagger docs is perfectly acceptable. You could do a single doc and prefix things by section and ability or just use separate docs as you are doing. Neither is a problem or best practice imo.

Yes bro i want Multiple Swagger Api Documents for a one project because in this project has integrated with different client and services

so i want to provide different api docs for different services client so that they will only see their docs

Activity icon

Replied to [Vue Warn]: Error In Render: "TypeError: Cannot Read Property 'length' Of Undefined"

Bro i want to say that products.total is working but not proper

when delete all the list in the table show properly but when add one list in the table then still showing in the below of the table but when i refresh the page then remove other wise still below the table

Jun
27
3 months ago
Activity icon

Replied to Anybody Have Specialization In Swagger For Api Docs I Have A Question

Thanks @fylzero brother you replyed me...

Can you give me the example

Bro i have multiple end points in the project mean client, vendor, candidate have different end points

i want to make different docs for client so that i will provide to an other only client end point docs

same as vendor and candidate

these are endpoints are in the same project but i want to make different docs of these apis so that candidate will only see their docs and use

same as vendor will see only their swagger docs and use

same as candidate will see anly candidate swagger docs and use

Plz can you help me in deep so that i will make these work

Thanks in advance @fylzero

http://example.com/swagger/ClientOperations.json
http://example.com/swagger/CandidateOperations.json
http://example.com/swagger/PublicOperations.json
Activity icon

Started a new Conversation Anybody Have Specialization In Swagger For Api Docs I Have A Question

Hi!

I want to make api document for multiple client with the help of swagger UI

i have api's and want some api can access for public and some will private client and they will access only their api's endpoint and will use

Can you give me the best suggestion or example so that could solve my problem with the help of you

Thanks in advance

Activity icon

Replied to [Vue Warn]: Error In Render: "TypeError: Cannot Read Property 'length' Of Undefined"

Thanks bro replying me ..

Working not properly because error is gone but one issue coming when the talblelist have not data then show no data fount but when add the data then also showing no data found below the table after refresh the page then go

Jun
26
4 months ago
Activity icon

Replied to [Vue Warn]: Error In Render: "TypeError: Cannot Read Property 'length' Of Undefined"

<template>
  <table class="table table-bordered table-hover">
    <thead>
      <tr>
         <th>Title</th>
      </tr>
    </thead>
    <tbody>
      <tr v-for="(product,key) in products.data">
        <td>{{ product.title }}</td>
      </tr>
      <tr class="text-center" v-if="products.data.length <= 0">
        <td colspan="12">No data found</td>
      </tr>
    </tbody>
  </table>
  <pagination :data="products" :limit="1" @pagination-change-page="getResults"></pagination>
</template>
<script>
    export default {
        mounted() {
          this.getResults()
        },
        data(){
            return{
              products:{},
            }
        },
        methods: {
            getResults(page = 1) {
                let _this = this;
                axios.get('/admin/products/index', {
                      params: {
                          page: page,
                      }
                  })
                    .then(response => {
                        _this.products = response.data.products;
                    })
                    .catch(response => {
                        this.errors = response.errors;
                        console.log(response);
                    });
            }
        }
    }
</script>
Jun
25
4 months ago
Activity icon

Replied to [Vue Warn]: Error In Render: "TypeError: Cannot Read Property 'length' Of Undefined"

Thanks @bobbybouwmann bro for replying me

i have pagination on table using vue js pagination plugin and when used paginate from backend that will send response.data.products.data

length property is working but in console getting error length is undefind property

Activity icon

Started a new Conversation [Vue Warn]: Error In Render: "TypeError: Cannot Read Property 'length' Of Undefined"

<table class="table table-bordered table-hover">
  <thead>
    <tr>
       <th>Title</th>
    </tr>
  </thead>
  <tbody>
    <tr v-for="(product,key) in products.data">
      <td>{{ product.title }}</td>
    </tr>
    <tr class="text-center" v-if="products.data.length <= 0">
      <td colspan="12">No data found</td>
    </tr>
  </tbody>
</table>
Jun
24
4 months ago
Activity icon

Replied to Laravel Accessor Attribute Not Working In Vuejs Template

Thanks @nakov for replying me this code working for me


public function getStartDateAttribute($value)
{
    return Carbon::parse($value)->format('d/m/Y');
}

Bro one more issue is that i have use vue2-datepicker when edit the the specific product then other are showing in input field only date not showing why that where as i sending in accessor but not luck

Can you help about this

Vue js script

<date-picker 
                        style="width: 330px;"                       
                        input-class="form-control"
                        type="date"
                        autocomplete="off"
                        lang="en"
                        format="DD-MM-YYYY"
                        name="start_date"
                        v-model="start_date">                            
                      </date-picker>


editRecord(product) {
                console.log(product);
                let _this = this;
                _this.id = product.id
                _this.title = product.title;
                _this.start_date= product.start_date;
                _this.description = product.description;
            },
Activity icon

Started a new Conversation Laravel Accessor Attribute Not Working In Vuejs Template

i have parsed date in laravel accessor and view on vue template page but showing invalid date on list attribute

You can see my code

Laravel Code

protected $appends = ['date'];

public function getDueDateAttribute()
    {
        return Carbon::parse($this->attributes['date'])->format('d/m/yy');
    }

Vue Code

<tr v-for="(product,key) in products.data">
  <td>{{ product.due_date | formatDate }}</td>
</tr>